Changes between Initial Version and Version 1 of pixelflip


Ignore:
Timestamp:
May 14, 2007, 12:13:58 PM (17 years ago)
Author:
mlucas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pixelflip

    v1 v1  
     1= pixelflip =
     2converts pixel values
     3{{{
     4Usage: pixelflip [options] <output_type> <input_file> <output_file> <target_value> <replacement_value>
     5Options:
     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
     29NOTES:
     30-m Replacement mode option explanation:
     31   Valid modes = "all", "partial", and "full"  (default=all)
     32
     33If mode is "all" (default):
     34Any pixel with dn of target will be replaced.
     35
     36If mode is "partial":
     37Target will be replaced only at least one subpixel(band) does
     38not have the target.
     39
     40If mode is "full":
     41Target 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
     61Valid output writer types:
     62tiff_strip
     63tiff_strip_band_separate
     64tiff_tiled
     65tiff_tiled_band_separate
     66jpeg
     67general_raster_bip
     68general_raster_bil
     69general_raster_bsq
     70general_raster_bip_envi
     71general_raster_bil_envi
     72general_raster_bsq_envi
     73nitf_block_band_separate
     74nitf_block_band_sequential
     75}}}