17 #ifndef ossimPixelFlipper_HEADER 18 #define ossimPixelFlipper_HEADER 40 static const char PF_TARGET_VALUE_KW[];
41 static const char PF_TARGET_RANGE_KW[];
42 static const char PF_REPLACEMENT_VALUE_KW[];
43 static const char PF_REPLACEMENT_MODE_KW[];
44 static const char PF_CLAMP_VALUE_KW[];
45 static const char PF_CLAMP_VALUE_LO_KW[];
46 static const char PF_CLAMP_VALUE_HI_KW[];
47 static const char PF_CLIP_MODE_KW[];
83 REPLACE_BAND_IF_TARGET = 0,
84 REPLACE_BAND_IF_PARTIAL_TARGET = 1,
85 REPLACE_ALL_BANDS_IF_PARTIAL_TARGET = 2,
86 REPLACE_ONLY_FULL_TARGETS = 3,
87 REPLACE_ALL_BANDS_IF_ANY_TARGET = 4,
99 CLAMPING_LO_AND_HI = 3,
136 const char* prefix=0)
const;
143 const char* prefix=0);
179 void setClampValue(
ossim_float64 clamp_value,
bool is_high_clamp_value=
true);
188 bool setReplacementMode(
const ossimString& modeString);
195 void setClipMode(ClipMode mode);
203 ClipMode getClipMode()
const;
207 virtual void getPropertyNames(std::vector<ossimString>& propertyNames)
const;
218 void clipTile(T dummy,
ossim_float64 theReplacementValue
When target values are defined, this is the value the pixel will assume if the pixel falls within the...
virtual void setProperty(ossimRefPtr< ossimProperty > property)
ReplacementMode
Target Replacement Mode:
Represents serializable keyword/value map.
ClipMode theClipMode
Border Clip mode.
ReplacementMode theReplacementMode
See documentation for ReplacementMode enum above.
std::recursive_mutex theMutex
For lock and unlock.
ossim_float64 theTargetValueLo
The value range to replace.
virtual ossimString getShortName() const
virtual void initialize()
ClampingMode
When either a lo and/or hi clamp value is set, the clamping mode will be enabled accordingly and over...
virtual double getMinPixelValue(ossim_uint32 band=0) const
Returns the min pixel of the band.
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
ossim_float64 theTargetValueHi
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
unsigned int ossim_uint32
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
ClampingMode theClampingMode
ossim_float64 theClampValueHi
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
Class to scan pixels and flip target dn value to a replacement dn value.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
ossim_float64 theClampValueLo
The range of desired pixel values.
ossimRefPtr< ossimImageData > theClipTileBuffer
std::vector< ossimIrect > theBoundingRects
std::basic_ostream< char > ostream
Base class for char output streams.
std::vector< ossimPolygon > theValidVertices
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)