OTB
9.0.0
Orfeo Toolbox
|
#include <otbTouziEdgeDetectorImageFilter.h>
typedef TouziEdgeDetectorImageFilter | Self |
typedef ImageToModulusAndDirectionImageFilter< TInputImage, TOutputImage, TOutputImageDirection > | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputImageType | OutputImageType |
typedef Superclass::OutputImageDirectionType | OutputImageDirectionType |
typedef InputImageType::SizeType | SizeType |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef OutputImageType::PixelType | OutputPixelType |
typedef OutputImageDirectionType::PixelType | OutputPixelDirectionType |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
SizeType | m_Radius |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual void | SetRadius (SizeType _arg) |
virtual const SizeType & | GetRadius () const |
void | GenerateInputRequestedRegion () override |
TouziEdgeDetectorImageFilter () | |
~TouziEdgeDetectorImageFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | BeforeThreadedGenerateData () override |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override |
TouziEdgeDetectorImageFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Application of a filter of detection of contours.
This class implements the Touzi's ratio edge detector used to detect contours.
We define a square region of size 2n+1 that we divided in two regions.
The response of the edge detector between two regions 1 and 2 in one direction is:
where and are the mean of regions 1 and 2.
The intensity of contour is calculated in four directions vertical , diagonal 1, horizontal and diagonal 2.
The output is an image of intensity of the detection of contour R, the maximum response of the ratio edge detector of :
An image of the direction of contours can also be determined by this filter:
where if
else if
Definition at line 61 of file otbTouziEdgeDetectorImageFilter.h.
typedef itk::SmartPointer<const Self> otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::ConstPointer |
typedef for the classes standards.
Definition at line 73 of file otbTouziEdgeDetectorImageFilter.h.
typedef Superclass::InputImageType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::InputImageType |
typedef to simplify variables definition and declaration.
Definition at line 79 of file otbTouziEdgeDetectorImageFilter.h.
typedef Superclass::OutputImageDirectionType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::OutputImageDirectionType |
typedef for the classes standards.
Definition at line 84 of file otbTouziEdgeDetectorImageFilter.h.
typedef OutputImageType::RegionType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::OutputImageRegionType |
typedef for the classes standards.
Definition at line 87 of file otbTouziEdgeDetectorImageFilter.h.
typedef Superclass::OutputImageType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::OutputImageType |
typedef for the classes standards.
Definition at line 83 of file otbTouziEdgeDetectorImageFilter.h.
typedef OutputImageDirectionType::PixelType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::OutputPixelDirectionType |
typedef for the classes standards.
Definition at line 89 of file otbTouziEdgeDetectorImageFilter.h.
typedef OutputImageType::PixelType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::OutputPixelType |
typedef for the classes standards.
Definition at line 88 of file otbTouziEdgeDetectorImageFilter.h.
typedef itk::SmartPointer<Self> otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::Pointer |
typedef for the classes standards.
Definition at line 72 of file otbTouziEdgeDetectorImageFilter.h.
typedef TouziEdgeDetectorImageFilter otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::Self |
typedef for the classes standards.
Definition at line 70 of file otbTouziEdgeDetectorImageFilter.h.
typedef InputImageType::SizeType otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::SizeType |
typedef for the classes standards.
Definition at line 86 of file otbTouziEdgeDetectorImageFilter.h.
typedef ImageToModulusAndDirectionImageFilter<TInputImage, TOutputImage, TOutputImageDirection> otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::Superclass |
typedef for the classes standards.
Definition at line 71 of file otbTouziEdgeDetectorImageFilter.h.
|
protected |
typedef for the classes standards.
Definition at line 42 of file otbTouziEdgeDetectorImageFilter.hxx.
|
inlineoverrideprotected |
typedef for the classes standards.
Definition at line 104 of file otbTouziEdgeDetectorImageFilter.h.
|
privatedelete |
typedef for the classes standards.
|
overrideprotected |
Set up state of filter before multi-threading. InterpolatorType::SetInputImage is not thread-safe and hence has to be set up before ThreadedGenerateData
Definition at line 101 of file otbTouziEdgeDetectorImageFilter.hxx.
virtual::itk::LightObject::Pointer otb::TouziEdgeDetectorImageFilter< TInputImage, TOutputImage, TOutputImageDirection >::CreateAnother | ( | void | ) | const |
typedef for the classes standards.
|
override |
To be allowed to use the pipeline method TouziEdgeDetectorImageFilter needs a treatment input area larger than the output one.
Definition at line 48 of file otbTouziEdgeDetectorImageFilter.hxx.
|
virtual |
Return the name of the class.
|
virtual |
typedef for the classes standards.
|
static |
Method for management of the object factory.
|
privatedelete |
typedef for the classes standards.
|
overrideprotected |
Standard "PrintSelf" method
Definition at line 304 of file otbTouziEdgeDetectorImageFilter.hxx.
|
virtual |
Set/Get radius methods
|
overrideprotected |
TouziEdgeDetectorImageFilter can be implemented for a multithreaded filter treatment. Thus, this implementation give the ThreadedGenerateData() method. that is called for each process thread. Image data are automatically allocated through the parent class calling the ThreadedGenerateData() method. ThreadedGenerateData() can only write the area of the image specified by the parameter "outputRegionForThread"
Definition at line 118 of file otbTouziEdgeDetectorImageFilter.hxx.
References otb::CONST_PI, otb::CONST_PI_2, and otb::CONST_PI_4.
|
static |
Extract input and output images sizes.
Definition at line 65 of file otbTouziEdgeDetectorImageFilter.h.
|
private |
Radius declaration
Definition at line 126 of file otbTouziEdgeDetectorImageFilter.h.
|
static |
typedef for the classes standards.
Definition at line 66 of file otbTouziEdgeDetectorImageFilter.h.