OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimHistogramRemapper.h>
Public Types | |
enum | StretchMode { LINEAR_ONE_PIECE = 0, LINEAR_1STD_FROM_MEAN = 1, LINEAR_2STD_FROM_MEAN = 2, LINEAR_3STD_FROM_MEAN = 3, LINEAR_AUTO_MIN_MAX = 4, LINEAR_AUTO_PERCENTILE = 5, STRETCH_UNKNOWN = 6 } |
![]() | |
enum | RemapTableType { UKNOWN = 0, NATIVE = 1, MIN_MAX = 2, NORMALIZED = 3 } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
Public Member Functions | |
ossimHistogramRemapper () | |
default constructor More... | |
virtual ossimString | getLongName () const |
virtual ossimString | getShortName () const |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &tile_rect, ossim_uint32 resLevel=0) |
virtual void | initialize () |
void | reset () |
void | setStretchMode (StretchMode mode, bool rebuildTableFlag=false) |
Sets remap mode to mode. More... | |
void | setStretchModeAsString (const ossimString &mode, bool rebuildTableFlag=false) |
Stretch mode values can be linear_one_piece, linear_1std_from_mean, linear_2std_from_mean, linear_3std_from_mean, linear_auto_min_max, If rebuildTableFlag is true, the table will be built at this time; else just the dirty flag is set. More... | |
StretchMode | getStretchMode () const |
Returns the current enumerated node. More... | |
ossimString | getStretchModeString () const |
Returns the string for current remap mode. More... | |
ossim_uint32 | getNumberOfStretchModes () const |
Returns the number of stretch modes. More... | |
ossimString | getStretchModeString (ossim_uint32 index) const |
Returns the mode string for a given index. More... | |
void | setLowNormalizedClipPoint (const ossim_float64 &clip) |
Sets the low clip point. More... | |
void | setLowNormalizedClipPoint (const ossim_float64 &clip, ossim_uint32 zero_based_band) |
Sets the low clip point for band. More... | |
void | setHighNormalizedClipPoint (const ossim_float64 &clip) |
Sets the high clip point. More... | |
void | setHighNormalizedClipPoint (const ossim_float64 &clip, ossim_uint32 zero_based_band) |
Sets the high clip point. More... | |
void | setLowClipPoint (const ossim_float64 &clip) |
Sets the low clip point. More... | |
void | setLowClipPoint (const ossim_float64 &clip, ossim_uint32 zero_based_band) |
Sets the low clip point for band. More... | |
void | setHighClipPoint (const ossim_float64 &clip) |
Sets the high clip point. More... | |
void | setHighClipPoint (const ossim_float64 &clip, ossim_uint32 zero_based_band) |
Sets the high clip point. More... | |
void | setMidPoint (const ossim_float64 &value) |
Sets the mid clip point. More... | |
void | setMidPoint (const ossim_float64 &value, ossim_uint32 zero_based_band) |
Sets the mid clip point for band. More... | |
void | setMinOutputValue (const ossim_float64 &value) |
Sets the min output value. More... | |
void | setMinOutputValue (const ossim_float64 &value, ossim_uint32 zero_based_band) |
Sets the min output value for band. More... | |
void | setMaxOutputValue (const ossim_float64 &value) |
Sets the max output value. More... | |
void | setMaxOutputValue (const ossim_float64 &value, ossim_uint32 zero_based_band) |
Sets the min output value for band. More... | |
ossim_float64 | getLowNormalizedClipPoint (ossim_uint32 zero_based_band) const |
Returns the normalized low clip point for band. More... | |
ossim_float64 | getLowNormalizedClipPoint () const |
Returns the normalized low clip point which is the average of all bands. More... | |
ossim_float64 | getHighNormalizedClipPoint (ossim_uint32 zero_based_band) const |
Returns the normalized high clip point for band. More... | |
ossim_float64 | getHighNormalizedClipPoint () const |
Returns the normalized High clip point which is the average of all bands. More... | |
ossim_float64 | getLowClipPoint (ossim_uint32 zero_based_band) const |
Returns the low clip point for band. More... | |
ossim_float64 | getLowClipPoint () const |
Returns the low clip point which is the average of all bands. More... | |
ossim_float64 | getHighClipPoint (ossim_uint32 zero_based_band) const |
Returns the high clip point for band. More... | |
ossim_float64 | getHighClipPoint () const |
Returns the high clip point which is the average of all bands. More... | |
ossim_float64 | getMidPoint (ossim_uint32 zero_based_band) const |
Returns the mid point for band. More... | |
ossim_float64 | getMidPoint () const |
Returns the mid clip point which is the average of all bands. More... | |
ossim_float64 | getMinOutputValue (ossim_uint32 zero_based_band) const |
Returns the minimum output value for band. More... | |
ossim_float64 | getMinOutputValue () const |
Returns the minimum output value which is the average of all bands. More... | |
ossim_float64 | getMaxOutputValue (ossim_uint32 zero_based_band) const |
Returns the maximum output value for band. More... | |
ossim_float64 | getMaxOutputValue () const |
Returns the maximum output value which is the average of all bands. More... | |
void | setHistogram (ossimRefPtr< ossimMultiResLevelHistogram > histogram) |
Sets the histogram. More... | |
ossimRefPtr< ossimMultiResLevelHistogram > | getHistogram () |
ossimRefPtr< const ossimMultiResLevelHistogram > | getHistogram () const |
ossimRefPtr< ossimHistogram > | getHistogram (ossim_uint32 zero_based_band, ossim_uint32 res_level=0) const |
Returns pointer to histogram for band and reduced res level. More... | |
bool | openHistogram (const ossimFilename &histogram_file) |
Open the histogram file. More... | |
bool | computeHistogram (const ossimIrect &roi) |
Compute the histogram from input connection and region of interest. More... | |
ossimFilename | getHistogramFile () const |
Returns the currently opened histogram. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Method to the save the state to a keyword list. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
virtual ostream & | print (ostream &os) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
virtual double | getMinPixelValue (ossim_uint32 band=0) const |
Returns the min pixel of the band. More... | |
virtual double | getMaxPixelValue (ossim_uint32 band=0) const |
Returns the max pixel of the band. More... | |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
Will test for the input being a ossimHistogramSource and allow pulling the histogram from a histogram source. More... | |
![]() | |
ossimTableRemapper () | |
default constructor More... | |
virtual ossimScalarType | getOutputScalarType () const |
This will be used to query the output pixel type of the tile source. More... | |
![]() | |
ossimImageSourceFilter (ossimObject *owner=NULL) | |
ossimImageSourceFilter (ossimImageSource *inputSource) | |
ossimImageSourceFilter (ossimObject *owner, ossimImageSource *inputSource) | |
virtual void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
virtual ossim_uint32 | getNumberOfInputBands () const |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual void | refreshEvent (ossimRefreshEvent &event) |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
![]() | |
ossimImageSource (ossimObject *owner=0) | |
ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimImageSource () |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIpt &origin, ossim_uint32 resLevel=0) |
virtual bool | getTile (ossimImageData *result, ossim_uint32 resLevel=0) |
Method to get a tile. More... | |
virtual ossimObject * | getObject () |
For RTTI support. More... | |
virtual const ossimObject * | getObject () const |
For RTTI support. More... | |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
Will return the decimation factor for the given resolution level. More... | |
virtual void | getDecimationFactors (std::vector< ossimDpt > &decimations) const |
Will return an array of all decimations for each resolution level. More... | |
virtual ossim_uint32 | getNumberOfDecimationLevels () const |
Will return the number of resolution levels. More... | |
virtual ossim_uint32 | getNumberOfOutputBands () const |
Returns the number of bands in a tile returned from this TileSource. More... | |
virtual ossim_uint32 | getTileWidth () const |
Returns the default processing tile width. More... | |
virtual ossim_uint32 | getTileHeight () const |
Returns the default processing tile height. More... | |
virtual double | getNullPixelValue (ossim_uint32 band=0) const |
Each band has a null pixel associated with it. More... | |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
This will return the bounding rect of the source. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual void | getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () |
Returns the image geometry object associated with this tile source or NULL if not defined. More... | |
virtual void | setImageGeometry (const ossimImageGeometry *geom) |
Default implementation sets geometry of the first input to the geometry specified. More... | |
virtual void | saveImageGeometry () const |
Default method to call input's saveImageGeometry. More... | |
virtual void | saveImageGeometry (const ossimFilename &geometry_file) const |
Default method to call input's saveImageGeometry. More... | |
virtual bool | isIndexedData () const |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual bool | isSourceEnabled () const |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | addListener (ossimListener *listener) |
virtual bool | removeListener (ossimListener *listener) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
Protected Member Functions | |
virtual | ~ossimHistogramRemapper () |
virtual destructor More... | |
![]() | |
virtual | ~ossimTableRemapper () |
virtual destructor More... | |
void | allocate (const ossimIrect &rect) |
void | destroy () |
void | remapFromNativeTable (ossimRefPtr< ossimImageData > &inputTile) |
template<class T > | |
void | remapFromNativeTable (T dummy, ossimRefPtr< ossimImageData > &inputTile) |
void | remapFromNormalizedTable (ossimRefPtr< ossimImageData > &inputTile) |
template<class T > | |
void | dumpTable (T dummy, ostream &os) const |
ossimTableRemapper (const ossimTableRemapper &tr) | |
ossimTableRemapper & | operator= (const ossimTableRemapper &tr) |
![]() | |
virtual | ~ossimImageSourceFilter () |
![]() | |
ossimImageSource (const ossimImageSource &rhs) | |
const ossimImageSource & | operator= (const ossimImageSource &) |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Private Member Functions | |
ossimHistogramRemapper (const ossimHistogramRemapper &hr) | |
ossimHistogramRemapper & | operator= (const ossimHistogramRemapper &hr) |
void | buildTable () |
void | buildLinearTable () |
void | buildAutoLinearMinMaxTable () |
void | buildAutoLinearPercentileTable () |
template<class T > | |
void | buildLinearTable (T dummy) |
template<class T > | |
void | buildAutoLinearMinMaxTableTemplate (T dummy) |
template<class T > | |
void | buildAutoLinearPercentileTableTemplate (T dummy) |
void | buildLinearTableStdFromMean () |
Sets clip points using mean and standard deviations then calls buildLinearTable method. More... | |
void | initializeClips () |
Uses getNumberOfInputBands() to determine BANDS then calls initializeClips(BANDS) More... | |
void | initializeClips (ossim_uint32 bands) |
Initializes data members to some default state and size. More... | |
void | setNullCount () |
void | initializeMinMaxOutput () |
void | setupTable () |
Initialized base class (ossimTableRemapper) values: More... | |
void | verifyEnabled () |
This set theBypassFlag. More... | |
ossim_uint32 | getHistogramBand (ossim_uint32 input_band) const |
Returns the histogram band that maps to the input band. More... | |
void | setBypassFlag (bool flag) |
Sets theBypassFlag. More... | |
void | makeClean () |
If we are dirty then it will init what it needs and then set the dirty back to false;. More... | |
template<class T > | |
void | applyLinearStretch (T dummy, ossimRefPtr< ossimImageData > &inputTile) |
Private Attributes | |
StretchMode | theStretchMode |
bool | theDirtyFlag |
ossimRefPtr< ossimMultiResLevelHistogram > | theHistogram |
vector< ossim_float64 > | theNormalizedLowClipPoint |
vector< ossim_float64 > | theNormalizedHighClipPoint |
vector< ossim_float64 > | theMidPoint |
vector< ossim_float64 > | theMinOutputValue |
vector< ossim_float64 > | theMaxOutputValue |
vector< ossim_uint32 > | theBandList |
bool | theBypassFlag |
bool | theResetBandIndicesFlag |
Definition at line 39 of file ossimHistogramRemapper.h.
Enumerator | |
---|---|
LINEAR_ONE_PIECE | |
LINEAR_1STD_FROM_MEAN | |
LINEAR_2STD_FROM_MEAN | |
LINEAR_3STD_FROM_MEAN | |
LINEAR_AUTO_MIN_MAX | |
LINEAR_AUTO_PERCENTILE | |
STRETCH_UNKNOWN |
Definition at line 42 of file ossimHistogramRemapper.h.
ossimHistogramRemapper::ossimHistogramRemapper | ( | ) |
default constructor
Definition at line 52 of file ossimHistogramRemapper.cpp.
References ossimConnectableObject::setNumberOfInputs().
|
protectedvirtual |
|
private |
Definition at line 2239 of file ossimHistogramRemapper.cpp.
|
private |
Definition at line 295 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimImageData::getNumberOfBands(), theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
Referenced by getTile().
|
private |
Definition at line 1362 of file ossimHistogramRemapper.cpp.
References buildAutoLinearMinMaxTableTemplate(), ossimTableRemapper::getOutputScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
Referenced by buildTable().
|
private |
Definition at line 1590 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimImageSourceFilter::getNumberOfInputBands(), theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
Referenced by buildAutoLinearMinMaxTable().
|
private |
Definition at line 1419 of file ossimHistogramRemapper.cpp.
References buildAutoLinearPercentileTableTemplate(), ossimTableRemapper::getOutputScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
Referenced by buildTable().
|
private |
Definition at line 1753 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimImageSourceFilter::getNumberOfInputBands(), theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
Referenced by buildAutoLinearPercentileTable().
|
private |
Definition at line 1295 of file ossimHistogramRemapper.cpp.
References ossimTableRemapper::getOutputScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_SINT32, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
Referenced by buildTable().
|
private |
Definition at line 1476 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimImageSourceFilter::getNumberOfInputBands(), theDirtyFlag, theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
|
private |
Sets clip points using mean and standard deviations then calls buildLinearTable method.
Definition at line 1683 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimImageSourceFilter::getNumberOfInputBands(), theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
Referenced by buildTable().
|
private |
Definition at line 1251 of file ossimHistogramRemapper.cpp.
References buildAutoLinearMinMaxTable(), buildAutoLinearPercentileTable(), buildLinearTable(), buildLinearTableStdFromMean(), LINEAR_1STD_FROM_MEAN, LINEAR_2STD_FROM_MEAN, LINEAR_3STD_FROM_MEAN, LINEAR_AUTO_MIN_MAX, LINEAR_AUTO_PERCENTILE, LINEAR_ONE_PIECE, setupTable(), and theStretchMode.
Referenced by makeClean(), and setStretchMode().
|
virtual |
Will test for the input being a ossimHistogramSource and allow pulling the histogram from a histogram source.
Implements ossimConnectableObject.
Definition at line 2296 of file ossimHistogramRemapper.cpp.
bool ossimHistogramRemapper::computeHistogram | ( | const ossimIrect & | roi | ) |
Compute the histogram from input connection and region of interest.
With this method the histogram is owned by this object.
roi | Region of inte Returns true on success, false on error. |
Definition at line 186 of file ossimHistogramRemapper.cpp.
References ossimMultiResLevelHistogram::addHistogram(), ossimMultiBandHistogram::create(), ossimRefPtr< T >::get(), ossimDataObject::getDataObjectStatus(), ossimImageSource::getTile(), OSSIM_EMPTY, OSSIM_NULL, ossimImageData::populateHistogram(), setHistogram(), ossimImageSourceFilter::theInputConnection, and ossimRefPtr< T >::valid().
ossim_float64 ossimHistogramRemapper::getHighClipPoint | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the high clip point for band.
Clip points are DN values relative to the scalar type.
Will return OSSIM_DBL_NAN if:
Definition at line 784 of file ossimHistogramRemapper.cpp.
References getHistogram(), getMaxPixelValue(), ossimImageSourceFilter::getNumberOfInputBands(), ossimHistogram::HighClipVal(), ossim::nan(), theHistogram, theNormalizedHighClipPoint, and ossimRefPtr< T >::valid().
ossim_float64 ossimHistogramRemapper::getHighClipPoint | ( | ) | const |
Returns the high clip point which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 808 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), theHistogram, and theNormalizedHighClipPoint.
ossim_float64 ossimHistogramRemapper::getHighNormalizedClipPoint | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the normalized high clip point for band.
Will return OSSIM_DBL_NAN if:
Definition at line 704 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), ossimNotify(), ossimNotifyLevel_WARN, and theNormalizedHighClipPoint.
ossim_float64 ossimHistogramRemapper::getHighNormalizedClipPoint | ( | ) | const |
Returns the normalized High clip point which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 725 of file ossimHistogramRemapper.cpp.
References ossim::nan(), and theNormalizedHighClipPoint.
ossimRefPtr< ossimMultiResLevelHistogram > ossimHistogramRemapper::getHistogram | ( | ) |
Definition at line 2165 of file ossimHistogramRemapper.cpp.
References ossimRefPtr< T >::get(), and theHistogram.
Referenced by applyLinearStretch(), buildAutoLinearMinMaxTableTemplate(), buildAutoLinearPercentileTableTemplate(), buildLinearTable(), buildLinearTableStdFromMean(), getHighClipPoint(), getHistogram(), getLowClipPoint(), setHighClipPoint(), setLowClipPoint(), setNullCount(), and setupTable().
ossimRefPtr< const ossimMultiResLevelHistogram > ossimHistogramRemapper::getHistogram | ( | ) | const |
Definition at line 2170 of file ossimHistogramRemapper.cpp.
References ossimRefPtr< T >::get(), and theHistogram.
ossimRefPtr< ossimHistogram > ossimHistogramRemapper::getHistogram | ( | ossim_uint32 | zero_based_band, |
ossim_uint32 | res_level = 0 |
||
) | const |
Returns pointer to histogram for band and reduced res level.
Will return NULL if:
Definition at line 2176 of file ossimHistogramRemapper.cpp.
References ossimMultiResLevelHistogram::getHistogram(), getHistogram(), getHistogramBand(), ossimConnectableObject::getInput(), theHistogram, and ossimRefPtr< T >::valid().
|
private |
Returns the histogram band that maps to the input band.
Note:
Definition at line 2212 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getOutputBandList(), and theResetBandIndicesFlag.
Referenced by getHistogram().
ossimFilename ossimHistogramRemapper::getHistogramFile | ( | ) | const |
Returns the currently opened histogram.
Returns ossimFilename::NIL if no histogram is loaded.
Definition at line 2201 of file ossimHistogramRemapper.cpp.
References ossimMultiResLevelHistogram::getHistogramFile(), ossimFilename::NIL, theHistogram, and ossimRefPtr< T >::valid().
Referenced by ossimSingleImageChain::addHistogramRemapper().
|
virtual |
Reimplemented from ossimObject.
Definition at line 2228 of file ossimHistogramRemapper.cpp.
ossim_float64 ossimHistogramRemapper::getLowClipPoint | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the low clip point for band.
Clip points are DN values relative to the scalar type.
Will return OSSIM_DBL_NAN if:
Definition at line 742 of file ossimHistogramRemapper.cpp.
References getHistogram(), getMinPixelValue(), ossimImageSourceFilter::getNumberOfInputBands(), ossimHistogram::LowClipVal(), ossim::nan(), theHistogram, theNormalizedLowClipPoint, and ossimRefPtr< T >::valid().
ossim_float64 ossimHistogramRemapper::getLowClipPoint | ( | ) | const |
Returns the low clip point which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 767 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), theHistogram, and theNormalizedLowClipPoint.
ossim_float64 ossimHistogramRemapper::getLowNormalizedClipPoint | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the normalized low clip point for band.
Will return OSSIM_DBL_NAN if:
Definition at line 666 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), ossimNotify(), ossimNotifyLevel_WARN, and theNormalizedLowClipPoint.
ossim_float64 ossimHistogramRemapper::getLowNormalizedClipPoint | ( | ) | const |
Returns the normalized low clip point which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 687 of file ossimHistogramRemapper.cpp.
References ossim::nan(), and theNormalizedLowClipPoint.
ossim_float64 ossimHistogramRemapper::getMaxOutputValue | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the maximum output value for band.
Will return OSSIM_DBL_NAN if:
Definition at line 901 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), ossimNotify(), ossimNotifyLevel_WARN, and theMaxOutputValue.
ossim_float64 ossimHistogramRemapper::getMaxOutputValue | ( | ) | const |
Returns the maximum output value which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 922 of file ossimHistogramRemapper.cpp.
References ossim::nan(), and theMaxOutputValue.
|
virtual |
Returns the max pixel of the band.
Reimplemented from ossimImageSource.
Definition at line 2280 of file ossimHistogramRemapper.cpp.
References ossimImageSource::getMaxPixelValue(), theBypassFlag, ossimSource::theEnableFlag, and theMaxOutputValue.
Referenced by getHighClipPoint(), initializeClips(), and setMaxOutputValue().
ossim_float64 ossimHistogramRemapper::getMidPoint | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the mid point for band.
Will return OSSIM_DBL_NAN if:
Definition at line 825 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), ossimNotify(), ossimNotifyLevel_WARN, and theMidPoint.
ossim_float64 ossimHistogramRemapper::getMidPoint | ( | ) | const |
Returns the mid clip point which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 846 of file ossimHistogramRemapper.cpp.
References ossim::nan(), and theMidPoint.
ossim_float64 ossimHistogramRemapper::getMinOutputValue | ( | ossim_uint32 | zero_based_band | ) | const |
Returns the minimum output value for band.
Will return OSSIM_DBL_NAN if:
Definition at line 863 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), ossim::nan(), ossimNotify(), ossimNotifyLevel_WARN, and theMinOutputValue.
ossim_float64 ossimHistogramRemapper::getMinOutputValue | ( | ) | const |
Returns the minimum output value which is the average of all bands.
Will return OSSIM_DBL_NAN if:
Definition at line 884 of file ossimHistogramRemapper.cpp.
References ossim::nan(), and theMinOutputValue.
|
virtual |
Returns the min pixel of the band.
Reimplemented from ossimImageSource.
Definition at line 2265 of file ossimHistogramRemapper.cpp.
References ossimImageSource::getMinPixelValue(), theBypassFlag, ossimSource::theEnableFlag, and theMinOutputValue.
Referenced by getLowClipPoint(), and initializeClips().
ossim_uint32 ossimHistogramRemapper::getNumberOfStretchModes | ( | ) | const |
Returns the number of stretch modes.
Definition at line 1900 of file ossimHistogramRemapper.cpp.
References STRETCH_UNKNOWN.
|
virtual |
Reimplemented from ossimObject.
Definition at line 2233 of file ossimHistogramRemapper.cpp.
ossimHistogramRemapper::StretchMode ossimHistogramRemapper::getStretchMode | ( | ) | const |
Returns the current enumerated node.
Definition at line 1890 of file ossimHistogramRemapper.cpp.
References theStretchMode.
ossimString ossimHistogramRemapper::getStretchModeString | ( | ) | const |
Returns the string for current remap mode.
Definition at line 1895 of file ossimHistogramRemapper.cpp.
Referenced by print().
ossimString ossimHistogramRemapper::getStretchModeString | ( | ossim_uint32 | index | ) | const |
Returns the mode string for a given index.
Returns "stretch_unknown" if index is out of range.
NOTE:
Definition at line 1906 of file ossimHistogramRemapper.cpp.
References STRETCH_UNKNOWN.
|
virtual |
Reimplemented from ossimTableRemapper.
Definition at line 214 of file ossimHistogramRemapper.cpp.
References ossimTableRemapper::allocate(), applyLinearStretch(), ossimDataObject::getDataObjectStatus(), ossimImageSource::getTile(), ossimImageData::makeBlank(), makeClean(), OSSIM_DOUBLE, OSSIM_EMPTY, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_NULL, OSSIM_SCALAR_UNKNOWN, OSSIM_SSHORT16, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, ossimImageData::setImageRectangle(), theBypassFlag, theDirtyFlag, ossimSource::theEnableFlag, ossimImageSourceFilter::theInputConnection, ossimTableRemapper::theOutputScalarType, ossimTableRemapper::theTile, and ossimRefPtr< T >::valid().
|
virtual |
Reimplemented from ossimTableRemapper.
Definition at line 83 of file ossimHistogramRemapper.cpp.
Referenced by ossimSingleImageChain::setBandSelection(), and ossimSingleImageChain::setToThreeBands().
|
private |
Uses getNumberOfInputBands() to determine BANDS then calls initializeClips(BANDS)
Definition at line 1802 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
Referenced by reset(), setHighNormalizedClipPoint(), setHistogram(), setLowNormalizedClipPoint(), setMaxOutputValue(), setMidPoint(), setMinOutputValue(), and setupTable().
|
private |
Initializes data members to some default state and size.
Definition at line 1807 of file ossimHistogramRemapper.cpp.
References ossim::defaultMax(), ossim::defaultMin(), getMaxPixelValue(), getMinPixelValue(), OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_SCALAR_UNKNOWN, theMaxOutputValue, theMidPoint, theMinOutputValue, theNormalizedHighClipPoint, theNormalizedLowClipPoint, and ossimTableRemapper::theOutputScalarType.
|
private |
Definition at line 1851 of file ossimHistogramRemapper.cpp.
References ossim::defaultMax(), ossim::defaultMin(), ossimImageSourceFilter::getNumberOfInputBands(), OSSIM_SCALAR_UNKNOWN, theMaxOutputValue, theMinOutputValue, and ossimTableRemapper::theOutputScalarType.
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Returns true if ok or false on error.
Reimplemented from ossimTableRemapper.
Definition at line 939 of file ossimHistogramRemapper.cpp.
|
private |
If we are dirty then it will init what it needs and then set the dirty back to false;.
Definition at line 420 of file ossimHistogramRemapper.cpp.
References buildTable(), theDirtyFlag, ossimSource::theEnableFlag, and verifyEnabled().
Referenced by getTile().
bool ossimHistogramRemapper::openHistogram | ( | const ossimFilename & | histogram_file | ) |
Open the histogram file.
With this method the histogram is owned by this object. Returns true on success, false on error.
Definition at line 173 of file ossimHistogramRemapper.cpp.
References ossimMultiResLevelHistogram::importHistogram(), and setHistogram().
Referenced by ossimSingleImageChain::addHistogramRemapper(), and ossimSingleImageChain::openHistogram().
|
private |
Definition at line 2244 of file ossimHistogramRemapper.cpp.
|
virtual |
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
Reimplemented from ossimTableRemapper.
Definition at line 1917 of file ossimHistogramRemapper.cpp.
References ossimString::c_str(), getStretchModeString(), theBandList, theBypassFlag, theDirtyFlag, theHistogram, theMaxOutputValue, theMidPoint, theMinOutputValue, theNormalizedHighClipPoint, theNormalizedLowClipPoint, ossimTableRemapper::theTable, and ossimRefPtr< T >::valid().
void ossimHistogramRemapper::reset | ( | void | ) |
Definition at line 154 of file ossimHistogramRemapper.cpp.
References initializeClips(), LINEAR_ONE_PIECE, setStretchMode(), and verifyEnabled().
|
virtual |
Method to the save the state to a keyword list.
Returns true if ok or false on error.
Reimplemented from ossimTableRemapper.
Definition at line 1112 of file ossimHistogramRemapper.cpp.
References ossimKeywordlist::add(), theHistogram, and ossimRefPtr< T >::valid().
|
private |
Sets theBypassFlag.
If the start changes from bypassed to not bypassed this will set theDirtyFlag to true.
Definition at line 2249 of file ossimHistogramRemapper.cpp.
References theBypassFlag, and theDirtyFlag.
Referenced by verifyEnabled().
void ossimHistogramRemapper::setHighClipPoint | ( | const ossim_float64 & | clip | ) |
Sets the high clip point.
Notes on clip points:
Definition at line 525 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
void ossimHistogramRemapper::setHighClipPoint | ( | const ossim_float64 & | clip, |
ossim_uint32 | zero_based_band | ||
) |
Sets the high clip point.
Notes on clip points:
Definition at line 534 of file ossimHistogramRemapper.cpp.
References ossimHistogram::getHighFractionFromValue(), getHistogram(), ossim::isnan(), setHighNormalizedClipPoint(), and ossimRefPtr< T >::valid().
void ossimHistogramRemapper::setHighNormalizedClipPoint | ( | const ossim_float64 & | clip | ) |
Sets the high clip point.
Notes on clip points:
Definition at line 462 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
Referenced by setHighClipPoint().
void ossimHistogramRemapper::setHighNormalizedClipPoint | ( | const ossim_float64 & | clip, |
ossim_uint32 | zero_based_band | ||
) |
Sets the high clip point.
Notes on clip points:
Definition at line 471 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), initializeClips(), ossimNotify(), ossimNotifyLevel_WARN, theDirtyFlag, theNormalizedHighClipPoint, and theNormalizedLowClipPoint.
void ossimHistogramRemapper::setHistogram | ( | ossimRefPtr< ossimMultiResLevelHistogram > | histogram | ) |
Sets the histogram.
If (own_histogram == true) this object will delete theHistogram on destruction.
Definition at line 162 of file ossimHistogramRemapper.cpp.
References initializeClips(), setNullCount(), theDirtyFlag, theHistogram, and ossimTableRemapper::theTable.
Referenced by computeHistogram(), ATP::AtpGenerator::constructChain(), ossimBandMergeTool::initHistogramStretch(), and openHistogram().
void ossimHistogramRemapper::setLowClipPoint | ( | const ossim_float64 & | clip | ) |
Sets the low clip point.
Notes on clip point:
Definition at line 497 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
void ossimHistogramRemapper::setLowClipPoint | ( | const ossim_float64 & | clip, |
ossim_uint32 | zero_based_band | ||
) |
Sets the low clip point for band.
Notes on clip points:
Definition at line 506 of file ossimHistogramRemapper.cpp.
References getHistogram(), ossimHistogram::getLowFractionFromValue(), ossim::isnan(), setLowNormalizedClipPoint(), and ossimRefPtr< T >::valid().
void ossimHistogramRemapper::setLowNormalizedClipPoint | ( | const ossim_float64 & | clip | ) |
Sets the low clip point.
Note on null bin:
Notes on clip point:
Definition at line 411 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
Referenced by setLowClipPoint().
void ossimHistogramRemapper::setLowNormalizedClipPoint | ( | const ossim_float64 & | clip, |
ossim_uint32 | zero_based_band | ||
) |
Sets the low clip point for band.
Note on null bin:
Notes on clip points:
Definition at line 435 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), initializeClips(), ossimNotify(), ossimNotifyLevel_WARN, theDirtyFlag, theNormalizedHighClipPoint, and theNormalizedLowClipPoint.
void ossimHistogramRemapper::setMaxOutputValue | ( | const ossim_float64 & | value | ) |
Sets the max output value.
Notes on clip points:
Definition at line 627 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
void ossimHistogramRemapper::setMaxOutputValue | ( | const ossim_float64 & | value, |
ossim_uint32 | zero_based_band | ||
) |
Sets the min output value for band.
Definition at line 636 of file ossimHistogramRemapper.cpp.
References getMaxPixelValue(), ossimImageSourceFilter::getNumberOfInputBands(), initializeClips(), ossimNotify(), ossimNotifyLevel_WARN, theDirtyFlag, ossimImageSourceFilter::theInputConnection, theMaxOutputValue, and theMinOutputValue.
void ossimHistogramRemapper::setMidPoint | ( | const ossim_float64 & | value | ) |
Sets the mid clip point.
Notes on clip points:
Definition at line 554 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
void ossimHistogramRemapper::setMidPoint | ( | const ossim_float64 & | value, |
ossim_uint32 | zero_based_band | ||
) |
Sets the mid clip point for band.
Definition at line 563 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), initializeClips(), ossimNotify(), ossimNotifyLevel_WARN, theDirtyFlag, and theMidPoint.
void ossimHistogramRemapper::setMinOutputValue | ( | const ossim_float64 & | value | ) |
Sets the min output value.
Notes on clip points:
Definition at line 588 of file ossimHistogramRemapper.cpp.
References ossimImageSourceFilter::getNumberOfInputBands().
void ossimHistogramRemapper::setMinOutputValue | ( | const ossim_float64 & | value, |
ossim_uint32 | zero_based_band | ||
) |
Sets the min output value for band.
Definition at line 597 of file ossimHistogramRemapper.cpp.
References ossimImageSource::getMinPixelValue(), ossimImageSourceFilter::getNumberOfInputBands(), initializeClips(), ossimNotify(), ossimNotifyLevel_WARN, theDirtyFlag, ossimImageSourceFilter::theInputConnection, theMaxOutputValue, and theMinOutputValue.
|
private |
Definition at line 1873 of file ossimHistogramRemapper.cpp.
References ossimMultiResLevelHistogram::getHistogram(), getHistogram(), ossimMultiResLevelHistogram::getNumberOfBands(), ossimHistogram::SetCount(), theHistogram, and ossimRefPtr< T >::valid().
Referenced by setHistogram().
void ossimHistogramRemapper::setStretchMode | ( | StretchMode | mode, |
bool | rebuildTableFlag = false |
||
) |
Sets remap mode to mode.
If rebuildTableFlag is true, the table will be built at this time; else just the dirty flag is set.
mode | The stretch mode. |
rebuildTableFlag | If the true the table will be rebuilt; else, just the dirty flag will be set. |
Definition at line 1194 of file ossimHistogramRemapper.cpp.
References buildTable(), theDirtyFlag, theStretchMode, and verifyEnabled().
Referenced by ossimSingleImageChain::addHistogramRemapper(), ATP::AtpGenerator::constructChain(), ossimBandMergeTool::initHistogramStretch(), ossimSingleImageChain::openHistogram(), reset(), and setStretchModeAsString().
void ossimHistogramRemapper::setStretchModeAsString | ( | const ossimString & | mode, |
bool | rebuildTableFlag = false |
||
) |
Stretch mode values can be linear_one_piece, linear_1std_from_mean, linear_2std_from_mean, linear_3std_from_mean, linear_auto_min_max, If rebuildTableFlag is true, the table will be built at this time; else just the dirty flag is set.
mode | The stretch mode. |
rebuildTableFlag | If the true the table will be rebuilt; else, just the dirty flag will be set. |
Definition at line 1218 of file ossimHistogramRemapper.cpp.
References LINEAR_1STD_FROM_MEAN, LINEAR_2STD_FROM_MEAN, LINEAR_3STD_FROM_MEAN, LINEAR_AUTO_MIN_MAX, LINEAR_AUTO_PERCENTILE, LINEAR_ONE_PIECE, setStretchMode(), and STRETCH_UNKNOWN.
|
private |
Initialized base class (ossimTableRemapper) values:
Definition at line 1956 of file ossimHistogramRemapper.cpp.
References ossim::defaultMax(), ossim::defaultMin(), getHistogram(), ossimConnectableObject::getInput(), ossimImageSource::getMaxPixelValue(), ossimImageSource::getMinPixelValue(), ossimImageSourceFilter::getNumberOfInputBands(), ossimTableRemapper::getOutputScalarType(), ossimHistogram::GetRes(), initializeClips(), ossim::isnan(), ossimTableRemapper::MIN_MAX, ossimTableRemapper::NATIVE, ossimTableRemapper::NORMALIZED, OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SINT16, OSSIM_SINT32, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, theMaxOutputValue, theMinOutputValue, theNormalizedLowClipPoint, ossimTableRemapper::theOutputScalarType, ossimTableRemapper::theTable, ossimTableRemapper::theTableBandCount, ossimTableRemapper::theTableBinCount, ossimTableRemapper::theTableType, and ossimRefPtr< T >::valid().
Referenced by buildTable().
|
private |
This set theBypassFlag.
This is an internally used flag to signal that there is nothing to do in this filter; hence, bypass.
Definition at line 2117 of file ossimHistogramRemapper.cpp.
References setBypassFlag(), STRETCH_UNKNOWN, theHistogram, theStretchMode, and ossimRefPtr< T >::valid().
Referenced by makeClean(), reset(), and setStretchMode().
|
private |
Definition at line 577 of file ossimHistogramRemapper.h.
Referenced by print().
|
private |
Definition at line 580 of file ossimHistogramRemapper.h.
Referenced by getMaxPixelValue(), getMinPixelValue(), getTile(), print(), and setBypassFlag().
|
private |
Definition at line 568 of file ossimHistogramRemapper.h.
Referenced by buildLinearTable(), getTile(), makeClean(), print(), setBypassFlag(), setHighNormalizedClipPoint(), setHistogram(), setLowNormalizedClipPoint(), setMaxOutputValue(), setMidPoint(), setMinOutputValue(), and setStretchMode().
|
mutableprivate |
Definition at line 569 of file ossimHistogramRemapper.h.
Referenced by getHighClipPoint(), getHistogram(), getHistogramFile(), getLowClipPoint(), print(), saveState(), setHistogram(), setNullCount(), and verifyEnabled().
|
private |
Definition at line 574 of file ossimHistogramRemapper.h.
Referenced by getMaxOutputValue(), getMaxPixelValue(), initializeClips(), initializeMinMaxOutput(), print(), setMaxOutputValue(), setMinOutputValue(), and setupTable().
|
private |
Definition at line 572 of file ossimHistogramRemapper.h.
Referenced by getMidPoint(), initializeClips(), print(), and setMidPoint().
|
private |
Definition at line 573 of file ossimHistogramRemapper.h.
Referenced by getMinOutputValue(), getMinPixelValue(), initializeClips(), initializeMinMaxOutput(), print(), setMaxOutputValue(), setMinOutputValue(), and setupTable().
|
private |
Definition at line 571 of file ossimHistogramRemapper.h.
Referenced by getHighClipPoint(), getHighNormalizedClipPoint(), initializeClips(), print(), setHighNormalizedClipPoint(), and setLowNormalizedClipPoint().
|
private |
Definition at line 570 of file ossimHistogramRemapper.h.
Referenced by applyLinearStretch(), buildAutoLinearMinMaxTableTemplate(), buildAutoLinearPercentileTableTemplate(), buildLinearTable(), buildLinearTableStdFromMean(), getLowClipPoint(), getLowNormalizedClipPoint(), initializeClips(), print(), setHighNormalizedClipPoint(), setLowNormalizedClipPoint(), and setupTable().
|
private |
Definition at line 581 of file ossimHistogramRemapper.h.
Referenced by getHistogramBand().
|
private |
Definition at line 567 of file ossimHistogramRemapper.h.
Referenced by buildTable(), getStretchMode(), setStretchMode(), and verifyEnabled().