Skip to content
Snippets Groups Projects
Commit c93c6e70 authored by Caroline Ruffel's avatar Caroline Ruffel
Browse files

nomsg

parent a22a190c
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
$Id$ $Id$
=========================================================================*/ =========================================================================*/
#ifndef __otbLineRatioDetector_h #ifndef __otbLineRatioDetectorImageFilter_h
#define __otbLineRatioDetector_h #define __otbLineRatioDetectorImageFilter_h
#include "itkBSplineInterpolateImageFunction.h" #include "itkBSplineInterpolateImageFunction.h"
#include "itkImageToImageFilter.h" #include "itkImageToImageFilter.h"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
namespace otb namespace otb
{ {
/** \class LineRatioDetector /** \class LineRatioDetectorImageFilter
* \brief Application of the filter of detection of linear features * \brief Application of the filter of detection of linear features
* *
* This class implements the Tupin's detector D1 used to detect * This class implements the Tupin's detector D1 used to detect
...@@ -64,7 +64,7 @@ namespace otb ...@@ -64,7 +64,7 @@ namespace otb
template <class TInputImage, template <class TInputImage,
class TOutputImage, class TOutputImage,
class InterpolatorType = itk::BSplineInterpolateImageFunction<TInputImage> > class InterpolatorType = itk::BSplineInterpolateImageFunction<TInputImage> >
class ITK_EXPORT LineRatioDetector : public itk::ImageToImageFilter< TInputImage, TOutputImage > class ITK_EXPORT LineRatioDetectorImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
{ {
public: public:
/** Extract dimensions as well of the images of entry of exit. */ /** Extract dimensions as well of the images of entry of exit. */
...@@ -79,7 +79,7 @@ public: ...@@ -79,7 +79,7 @@ public:
typedef TOutputImage OutputImageType; typedef TOutputImage OutputImageType;
/** typedef for the classes standards. */ /** typedef for the classes standards. */
typedef LineRatioDetector Self; typedef LineRatioDetectorImageFilter Self;
typedef itk::ImageToImageFilter< InputImageType, OutputImageType> Superclass; typedef itk::ImageToImageFilter< InputImageType, OutputImageType> Superclass;
typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer; typedef itk::SmartPointer<const Self> ConstPointer;
...@@ -88,7 +88,7 @@ public: ...@@ -88,7 +88,7 @@ public:
itkNewMacro(Self); itkNewMacro(Self);
/** Return the name of the class. */ /** Return the name of the class. */
itkTypeMacro(LineRatioDetector, itk::ImageToImageFilter); itkTypeMacro(LineRatioDetectorImageFilter, itk::ImageToImageFilter);
/** Typedefs to describe and access Interpolator */ /** Typedefs to describe and access Interpolator */
typedef typename InterpolatorType::Pointer InterpolatorPointer; typedef typename InterpolatorType::Pointer InterpolatorPointer;
...@@ -132,13 +132,13 @@ public: ...@@ -132,13 +132,13 @@ public:
const OutputImageType * GetOutputDirection(); const OutputImageType * GetOutputDirection();
protected: protected:
LineRatioDetector(); LineRatioDetectorImageFilter();
virtual ~LineRatioDetector() {}; virtual ~LineRatioDetectorImageFilter() {};
void PrintSelf(std::ostream& os, itk::Indent indent) const; void PrintSelf(std::ostream& os, itk::Indent indent) const;
void BeforeThreadedGenerateData(); void BeforeThreadedGenerateData();
/** LineRatioDetector can be implemented for a treatment of filter multithreaded. /** LineRatioDetectorImageFilter can be implemented for a treatment of filter multithreaded.
* Thus, the ThreadedGenerateData() method is called for each thread process. * Thus, the ThreadedGenerateData() method is called for each thread process.
* The data image are allocated automatically by the mother class by calling the * The data image are allocated automatically by the mother class by calling the
* ThreadedGenerateData() method. ThreadedGenerateData can only write the portion * ThreadedGenerateData() method. ThreadedGenerateData can only write the portion
...@@ -150,7 +150,7 @@ protected: ...@@ -150,7 +150,7 @@ protected:
int threadId ); int threadId );
private: private:
LineRatioDetector(const Self&); //purposely not implemented LineRatioDetectorImageFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented
/** Length of the linear feature = 2*m_LengthLine+1 */ /** Length of the linear feature = 2*m_LengthLine+1 */
...@@ -173,7 +173,7 @@ private: ...@@ -173,7 +173,7 @@ private:
} // end namespace otb } // end namespace otb
#ifndef OTB_MANUAL_INSTANTIATION #ifndef OTB_MANUAL_INSTANTIATION
#include "otbLineRatioDetector.txx" #include "otbLineRatioDetectorImageFilter.txx"
#endif #endif
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
$Id$ $Id$
=========================================================================*/ =========================================================================*/
#ifndef __otbLineRatioDetector_txx #ifndef __otbLineRatioDetectorImageFilter_txx
#define __otbLineRatioDetector_txx #define __otbLineRatioDetectorImageFilter_txx
#include "otbLineRatioDetector.h" #include "otbLineRatioDetectorImageFilter.h"
#include "itkDataObject.h" #include "itkDataObject.h"
#include "itkExceptionObject.h" #include "itkExceptionObject.h"
...@@ -32,7 +32,7 @@ namespace otb ...@@ -32,7 +32,7 @@ namespace otb
* *
*/ */
template <class TInputImage, class TOutputImage, class InterpolatorType > template <class TInputImage, class TOutputImage, class InterpolatorType >
LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::LineRatioDetector() LineRatioDetectorImageFilter<TInputImage, TOutputImage, InterpolatorType>::LineRatioDetectorImageFilter()
{ {
m_Radius.Fill(1); m_Radius.Fill(1);
m_LengthLine = 1; m_LengthLine = 1;
...@@ -42,7 +42,7 @@ LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::LineRatioDetecto ...@@ -42,7 +42,7 @@ LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::LineRatioDetecto
} }
template <class TInputImage, class TOutputImage, class InterpolatorType> template <class TInputImage, class TOutputImage, class InterpolatorType>
void LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError) void LineRatioDetectorImageFilter<TInputImage, TOutputImage, InterpolatorType>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
{ {
// call the superclass' implementation of this method // call the superclass' implementation of this method
Superclass::GenerateInputRequestedRegion(); Superclass::GenerateInputRequestedRegion();
...@@ -105,7 +105,7 @@ void LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::GenerateInp ...@@ -105,7 +105,7 @@ void LineRatioDetector<TInputImage, TOutputImage, InterpolatorType>::GenerateInp
*/ */
template <class TInputImage, class TOutputImage, class InterpolatorType> template <class TInputImage, class TOutputImage, class InterpolatorType>
void void
LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> LineRatioDetectorImageFilter< TInputImage, TOutputImage, InterpolatorType>
::BeforeThreadedGenerateData() ::BeforeThreadedGenerateData()
{ {
...@@ -124,8 +124,8 @@ LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> ...@@ -124,8 +124,8 @@ LineRatioDetector< TInputImage, TOutputImage, InterpolatorType>
} }
template <class TInputImage, class TOutputImage, class InterpolatorType> template <class TInputImage, class TOutputImage, class InterpolatorType>
const typename LineRatioDetector< TInputImage, TOutputImage, InterpolatorType>::OutputImageType * const typename LineRatioDetectorImageFilter< TInputImage, TOutputImage, InterpolatorType>::OutputImageType *
LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> LineRatioDetectorImageFilter< TInputImage, TOutputImage, InterpolatorType>
::GetOutputDirection() ::GetOutputDirection()
{ {
this->Update(); this->Update();
...@@ -133,7 +133,7 @@ LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> ...@@ -133,7 +133,7 @@ LineRatioDetector< TInputImage, TOutputImage, InterpolatorType>
} }
template< class TInputImage, class TOutputImage, class InterpolatorType> template< class TInputImage, class TOutputImage, class InterpolatorType>
void LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> void LineRatioDetectorImageFilter< TInputImage, TOutputImage, InterpolatorType>
::ThreadedGenerateData( ::ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, const OutputImageRegionType& outputRegionForThread,
int threadId int threadId
...@@ -365,7 +365,7 @@ void LineRatioDetector< TInputImage, TOutputImage, InterpolatorType> ...@@ -365,7 +365,7 @@ void LineRatioDetector< TInputImage, TOutputImage, InterpolatorType>
*/ */
template <class TInputImage, class TOutput, class InterpolatorType> template <class TInputImage, class TOutput, class InterpolatorType>
void void
LineRatioDetector<TInputImage, TOutput, InterpolatorType>::PrintSelf(std::ostream& os, itk::Indent indent) const LineRatioDetectorImageFilter<TInputImage, TOutput, InterpolatorType>::PrintSelf(std::ostream& os, itk::Indent indent) const
{ {
Superclass::PrintSelf( os, indent ); Superclass::PrintSelf( os, indent );
os << indent << "Length: " << m_LengthLine << std::endl; os << indent << "Length: " << m_LengthLine << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment