ioharness [-F frame_number] [-f plugin_format] -r 1 plugin_image.ext result_image.tiffThis test will read the entire image and write it to a Tiff file. We recommend using Tiff files as output, because they can handle all of the data storage types that Chalice can handle.
ioharness [-F frame_number] [-f plugin_format] -r 2 #_slices plugin_image.ext result_image.tiffThis test will read the image in slices. The second argument after the 2 is the number of slices to use. We recommend trying several different slicing numbers, including the number of lines in the image.
ioharness [-F frame_number] [-f plugin_format] -r 3 X1 Y1 X2 Y2 plugin_image.ext result_image.tiffThis test reads a rectangle starting at X1, Y1 and extending to X2, Y2 and writes it to the result file. Remember that ImFiles assumes that 0,0 is in the upper left hand corner of the image.
There are two optional arguments to ioharness that may be of use. The '-F' option specifies a frame number for those file formats that handle motion files. The '-f' specifies the input format. In general, you should NOT need to use the '-f' option, because your plugin should autosense the file type. However, some plugins, such as device plugins, may not be able to autosense and you should use the '-f' option for these.
ioharness [-F frame_number] -f plugin_format -w 1 source_image.ext plugin_image.extThis test will write the source image in the specified format. It will do the entire image in one big write.
ioharness [-F frame_number] [-f plugin_format] -w 2 #_slices source_image.tiff plugin_image.extThis test will write the image in slices. The second argument after the 2 is the number of slices to use. We recommend trying several different slicing numbers, including the number of lines in the image.
ioharness -i plugin_image.extThis test runs the 'format' (or 'getFormat' in the plugin) function to get the size and type information about an image.
csh> ioharness -f ImTiff -O O String 'Compression' default=lzw, menu {JPEG, LZW, Packbits, Pixar Log, Zip} O Toggle 'Prediction encoding' default=True O Integer 'Jpeg quality' count=1, default=90, hard min=1, hard max=100 O Integer 'Zip Level' count=1, default=9, hard min=1, hard max=5 O Integer 'Pixar Level' count=1, default=9, hard min=1, hard max=5 I String 'Pixar Type' default=default, menu {Default, 8 bit, 16 bit, Float}The '-o' flag can be used to set an option for the given format. This flag requires two arguments, the option name and the value. Here is an example of using the '-o' flag.
ioharness -f ImTiff -o 'Compression' zip -w 1 ~/grail/pics/girl.comp.tiff foo.tiff