OTB
9.0.0
Orfeo Toolbox
|
#include <otbImageToEdgePathFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef OutputPathType::ContinuousIndexType | ContinuousIndexType |
typedef Superclass::InputImagePointerType | InputImagePointerType |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputPathPointerType | OutputPathPointerType |
typedef Superclass::OutputPathType | OutputPathType |
typedef InputImageType::PixelType | PixelType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ImageToEdgePathFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef ImageToPathFilter< TInputImage, TOutputPath > | Superclass |
Public Types inherited from otb::ImageToPathFilter< TInputImage, TOutputPath > | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef InputImageType::Pointer | InputImagePointerType |
typedef TInputImage | InputImageType |
typedef OutputPathType::Pointer | OutputPathPointerType |
typedef TOutputPath | OutputPathType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::ProcessObject | ProcessObjectType |
typedef ImageToPathFilter | Self |
typedef itk::PathSource< TOutputPath > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Public Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath > | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
const InputImageType * | GetInput (void) |
virtual void | SetInput (const InputImageType *Image) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath > | |
static Pointer | New () |
PixelType | m_ForegroundValue |
virtual void | SetForegroundValue (PixelType _arg) |
virtual PixelType | GetForegroundValue () const |
ImageToEdgePathFilter () | |
~ImageToEdgePathFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | GenerateOutputInformation () override |
void | GenerateData () override |
ImageToEdgePathFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Additional Inherited Members | |
Static Public Attributes inherited from otb::ImageToPathFilter< TInputImage, TOutputPath > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
Protected Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath > | |
ImageToPathFilter () | |
~ImageToPathFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
This filter compute the closed edge path of a labelled object in an image (for example coming from a segmentation filter). Its output is a Path.
The input image is first surrounded by a 1 pixel wide border-line using the ConstantPadImageFilter in order to deal with stuck-to-the-border objects. The padding constant is chosen as regard to the ForegroundValue (label of the object) to avoid confusion on foreground and background values.
The edge computation is divided into two steps.
First, a linear search is performed to detect a first pixel belonging to the edge of the object.
From that pixel and until the algorithm comes back to this position, the neighborhood is iteratively and clock-wise searched to detect the next pixel in the edge.
In case of linear object (in fact open edge), the algorithm will walk the object twice in opposite directions, thus producing an edge with a null surface and twice the length of the object as perimeter.
This leads to consistent result for geometric descriptors (for instance compacity).
Definition at line 58 of file otbImageToEdgePathFilter.h.
typedef itk::SmartPointer<const Self> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ConstPointer |
Definition at line 65 of file otbImageToEdgePathFilter.h.
typedef OutputPathType::ContinuousIndexType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ContinuousIndexType |
Definition at line 77 of file otbImageToEdgePathFilter.h.
typedef Superclass::InputImagePointerType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::InputImagePointerType |
Definition at line 74 of file otbImageToEdgePathFilter.h.
typedef Superclass::InputImageType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::InputImageType |
Template parameters typedef.
Definition at line 70 of file otbImageToEdgePathFilter.h.
typedef Superclass::OutputPathPointerType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::OutputPathPointerType |
Definition at line 76 of file otbImageToEdgePathFilter.h.
typedef Superclass::OutputPathType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::OutputPathType |
Definition at line 75 of file otbImageToEdgePathFilter.h.
typedef InputImageType::PixelType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::PixelType |
Definition at line 79 of file otbImageToEdgePathFilter.h.
typedef itk::SmartPointer<Self> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Pointer |
Definition at line 64 of file otbImageToEdgePathFilter.h.
typedef ImageToEdgePathFilter otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Self |
standards typedefs
Definition at line 62 of file otbImageToEdgePathFilter.h.
typedef InputImageType::SizeType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::SizeType |
Definition at line 80 of file otbImageToEdgePathFilter.h.
typedef ImageToPathFilter<TInputImage, TOutputPath> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Superclass |
Definition at line 63 of file otbImageToEdgePathFilter.h.
|
protected |
Set and Get foreground value
Definition at line 36 of file otbImageToEdgePathFilter.hxx.
|
inlineoverrideprotected |
Set and Get foreground value
Definition at line 89 of file otbImageToEdgePathFilter.h.
|
privatedelete |
Set and Get foreground value
virtual::itk::LightObject::Pointer otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::CreateAnother | ( | void | ) | const |
|
overrideprotected |
Main computation method.
Definition at line 44 of file otbImageToEdgePathFilter.hxx.
References otbMsgDebugMacro.
|
inlineoverrideprotected |
Set and Get foreground value
Definition at line 93 of file otbImageToEdgePathFilter.h.
|
virtual |
Set and Get foreground value
|
virtual |
Runtime information.
Reimplemented from otb::ImageToPathFilter< TInputImage, TOutputPath >.
|
static |
Creation through the object factory.
|
privatedelete |
Set and Get foreground value
|
overrideprotected |
Set and Get foreground value
Definition at line 215 of file otbImageToEdgePathFilter.hxx.
|
virtual |
Set and Get foreground value
|
private |
Set and Get foreground value
Definition at line 102 of file otbImageToEdgePathFilter.h.