| 1 | = pixelflip = |
| 2 | converts pixel values |
| 3 | {{{ |
| 4 | Usage: pixelflip [options] <output_type> <input_file> <output_file> <target_value> <replacement_value> |
| 5 | Options: |
| 6 | --disable-elev Will disable the elevation |
| 7 | --disable-notify Takes an argument. Arguments are ALL, WARN, |
| 8 | NOTICE, INFO, FATAL, DEBUG. If you want multiple |
| 9 | disables then just do multiple --disable-notify on the |
| 10 | command line. All argument are case insensitive. Default is all are enabled. |
| 11 | --ossim-logfile takes a logfile as an argument. All output messages |
| 12 | are redirected to the specified log file. By default |
| 13 | there is no log file and all messages are enabled. |
| 14 | -K specify individual keywords to add to the preferences |
| 15 | keyword list: name=value |
| 16 | -P specify a preference file to load |
| 17 | -T specify the classes to trace, ex: |
| 18 | ossimInit|ossimImage.* |
| 19 | will trace ossimInit and all ossimImage classes |
| 20 | -c or --clamp-value clamp values (any pixel with value larger than input |
| 21 | will be clamped to input) |
| 22 | -h or --help Display this information |
| 23 | -m Replacement mode (see notes below) |
| 24 | -o or --create-overview Creates and overview for the output image |
| 25 | -w output tile width(only valid with tiled output |
| 26 | types). Must be a multiply of 16 |
| 27 | |
| 28 | |
| 29 | NOTES: |
| 30 | -m Replacement mode option explanation: |
| 31 | Valid modes = "all", "partial", and "full" (default=all) |
| 32 | |
| 33 | If mode is "all" (default): |
| 34 | Any pixel with dn of target will be replaced. |
| 35 | |
| 36 | If mode is "partial": |
| 37 | Target will be replaced only at least one subpixel(band) does |
| 38 | not have the target. |
| 39 | |
| 40 | If mode is "full": |
| 41 | Target will be repaced only if all subpixels(bands) have the target. |
| 42 | |
| 43 | Example: |
| 44 | target = 0 |
| 45 | replacement = 1 |
| 46 | Pixel at (0, 0) r=0, g=0, b=0 |
| 47 | Pixel at (0, 1) r=0, g=30, b=21 |
| 48 | |
| 49 | Mode is "all": |
| 50 | Pixel at (0, 0) becomes r=1, g=1, b=1 |
| 51 | Pixel at (0, 1) becomes r=1, g=30, b=21 |
| 52 | |
| 53 | Mode is "partial": |
| 54 | Pixel at (0, 0) remains r=0, g=0, b=0 |
| 55 | Pixel at (0, 1) becomes r=1, g=30, b=21 |
| 56 | |
| 57 | Mode is "full": |
| 58 | Pixel at (0, 0) becomes r=1, g=1, b=1 |
| 59 | Pixel at (0, 1) remains r=0, g=30, b=21 |
| 60 | |
| 61 | Valid output writer types: |
| 62 | tiff_strip |
| 63 | tiff_strip_band_separate |
| 64 | tiff_tiled |
| 65 | tiff_tiled_band_separate |
| 66 | jpeg |
| 67 | general_raster_bip |
| 68 | general_raster_bil |
| 69 | general_raster_bsq |
| 70 | general_raster_bip_envi |
| 71 | general_raster_bil_envi |
| 72 | general_raster_bsq_envi |
| 73 | nitf_block_band_separate |
| 74 | nitf_block_band_sequential |
| 75 | }}} |