|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
18 #ifndef GRM_SEGMENTER_H
19 #define GRM_SEGMENTER_H
26 template<
class TImage,
class TNode,
class TParam>
60 bool prev_merged =
false;
131 GRMSetMacro(
unsigned int, NumberOfComponentsPerPixel);
139 GRMGetMacro(
unsigned int, NumberOfComponentsPerPixel);
Segmenter< TImage, TNode, TParam > Self
unsigned int m_NumberOfComponentsPerPixel
LabelImageType::Pointer GetLabeledClusteredOutput()
GraphType::NodePointerType NodePointerType
IOType::ClusteredImageType ClusteredImageType
itk::SmartPointer< Self > Pointer
NodeType::CRPTNeighborType EdgeType
static void InitNodes(ImageType *inputImg, SegmenterType &seg, CONNECTIVITY mask)
Creation of an "otb" image which contains metadata.
Graph< NodeType > GraphType
unsigned int m_ImageWidth
virtual float ComputeMergingCost(NodePointerType n1, NodePointerType n2)=0
GraphType::EdgeType EdgeType
static bool PerfomAllDitheredIterationsWithBF(SegmenterType &seg)
GraphOperatorType::NodePointerType NodePointerType
GRMGetMacro(float, Threshold)
ClusteredImageType::Pointer GetClusteredOutput(const GraphType &graph, const unsigned int width, const unsigned int height)
unsigned int m_NumberOfIterations
IOType::LabelImageType LabelImageType
ClusteredImageType::Pointer GetClusteredImageOutput()
GRMSetMacro(bool, DoFastSegmentation)
static bool PerfomAllIterationsWithLMBFAndConstThreshold(SegmenterType &seg)
GraphOperations< Self > GraphOperatorType
GraphToOtbImage< GraphType > IOType
LabelImageType::Pointer GetLabelImage(const GraphType &graph, const unsigned int width, const unsigned int height)
itk::SmartPointer< Self > Pointer
virtual void UpdateSpecificAttributes(NodePointerType n1, NodePointerType n2)=0
bool m_DoFastSegmentation
unsigned int m_ImageHeight
virtual void InitFromImage()=0
void SetInput(TImage *in)
Creation of an "otb" vector image which contains metadata.