7 #ifndef ossimKMeansFilter_HEADER 8 #define ossimKMeansFilter_HEADER 53 enum ThresholdMode { NONE=0, MEAN=1, SIGMA_WEIGHTED=2, VARIANCE_WEIGHTED=3 };
99 void setThresholdMode(ThresholdMode mode);
116 bool computeKMeans();
ossimScalarType m_outputScalarType
Represents serializable keyword/value map.
ossim_uint32 m_numClusters
std::vector< double > m_thresholds
virtual void initialize()
std::vector< ossimRefPtr< ossimKMeansClustering > > m_classifiers
virtual double getMinPixelValue(ossim_uint32 band=0) const
Returns the min pixel of the band.
unsigned int ossim_uint32
ossimRefPtr< ossimMultiBandHistogram > m_histogram
Have num_bands entries.
std::vector< double > m_minPixelValue
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
std::vector< double > m_maxPixelValue
ThresholdMode m_thresholdMode
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.
ossimRefPtr< ossimImageData > m_tile
std::vector< ossim_uint32 > m_pixelValues
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)