Beispiel #1
0
int
main(int argc,char *argv[])
{
  tokenlist args;
  // extent relative to origin and voxel sizes of new file

  args.Transfer(argc-1,argv+1);
  if (args.size() < 1) {
    extractmask_help();
    exit(0);
  }
  Extractor ee;
  ee.init(args);
  // FIXME check for small (close to 0) voxel sizes
  ee.Go();
  exit(0);
}
Beispiel #2
0
int main( int argc, char** argv)
{
  Extractor*          pcExtractor = NULL;
  ExtractorParameter  cParameter;

  printf( "JSVM %s BitStream Extractor \n\n", _JSVM_VERSION_ );

  RNOKRS( cParameter.init       ( argc, argv ),   -2 );

  for( Int n = 0; n < 1; n++ )
  {
    RNOKR( Extractor::create    ( pcExtractor ),  -3 );

    RNOKR( pcExtractor->init    ( &cParameter ),  -4 );

    RNOKR( pcExtractor->go      (),               -5 );

    RNOKR( pcExtractor->destroy (),               -6 );
  }

  return 0;
}