Go to the documentation of this file.
25 #ifndef __TERRALIB_RP_INTERNAL_MAJORITYFILTER_H
26 #define __TERRALIB_RP_INTERNAL_MAJORITYFILTER_H
29 #include "../raster/Raster.h"
77 MajorityThreshold = 1,
98 AbstractParameters* clone() const;
128 AbstractParameters* clone() const;
145 bool isInitialized() const;
149 bool m_isInitialized;
153 te::rst::Raster* m_outputRaster;
162 bool SimpleFilter(const
te::rst::Raster& srcRaster, const
unsigned int srcBandIdx,
163 const
unsigned int dstBandIdx, const
bool useProgress);
172 bool FullFilter(const
te::rst::Raster& srcRaster, const
unsigned int srcBandIdx,
173 const
unsigned int dstBandIdx, const
bool useProgress);
188 void findNeighbors(
te::rst::Band& dstBand,
unsigned int lcol,
unsigned int lrow,
unsigned int col,
unsigned int row,
189 int& index,
int& totalPixel,
int* contClass, std::vector<
int>& veccol, std::vector<
int>& vecrow);
198 void find4Neighbors(
te::rst::Band& dstBand,
unsigned int col,
unsigned int row,
int* contClass);
207 void find8Neighbors(
te::rst::Band& dstBand,
unsigned int col,
unsigned int row,
int* contClass);
Raster Processing algorithm output parameters base interface.
void reset() _NOEXCEPT_OP(false)
Clear all internal allocated resources and reset the parameters instance to its initial state.
Majority Filter output parameters.
This file contains a class that represents the method to remove pixels from classified image.
std::unique_ptr< te::rst::Raster > m_outputRasterPtr
A pointer the ge generated output raster (label image).
An abstract class for raster data strucutures.
std::string m_rType
Output raster data source type (as described in te::raster::RasterFactory ).
Raster Processing algorithm base interface.
OutputParameters(const OutputParameters &)
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::map< std::string, std::string > m_rInfo
The necessary information to create the raster (as described in te::raster::RasterFactory).