#include "VisXV4.h" /* VisionX structure include file */ #include "Vutil.h" /* VisionX utility header files */ int main(int argc, char** argv) { Vfstruct (im); Vfstruct (om); int x, y; Vfread( &im, "infile.vx"); Vfnewim (&om, im.type, im.bbx, im.chan); for ( y = im.ylo; y <= im.yhi; y++) { for ( x = im.xlo; x <= im.xhi; x++) { if ( im.u[y][x] >= 50 ) { om.u[y][x] = 255; } else { om.u[y][x] = 0; } } } Vfwrite( &om, "outfile.vx"); exit(0); }