Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
c93c6e70
Commit
c93c6e70
authored
18 years ago
by
Caroline Ruffel
Browse files
Options
Downloads
Patches
Plain Diff
nomsg
parent
a22a190c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/FeatureExtraction/otbLineRatioDetector.h
+11
-11
11 additions, 11 deletions
Code/FeatureExtraction/otbLineRatioDetector.h
Code/FeatureExtraction/otbLineRatioDetector.txx
+10
-10
10 additions, 10 deletions
Code/FeatureExtraction/otbLineRatioDetector.txx
with
21 additions
and
21 deletions
Code/FeatureExtraction/otbLineRatioDetector.h
+
11
−
11
View file @
c93c6e70
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
$Id$
$Id$
=========================================================================*/
=========================================================================*/
#ifndef __otbLineRatioDetector_h
#ifndef __otbLineRatioDetector
ImageFilter
_h
#define __otbLineRatioDetector_h
#define __otbLineRatioDetector
ImageFilter
_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 LineRatioDetector
ImageFilter
* \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
LineRatioDetector
ImageFilter
:
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
LineRatioDetector
ImageFilter
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
(
LineRatioDetector
ImageFilter
,
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
();
LineRatioDetector
ImageFilter
();
virtual
~
LineRatioDetector
()
{};
virtual
~
LineRatioDetector
ImageFilter
()
{};
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.
/** LineRatioDetector
ImageFilter
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
LineRatioDetector
ImageFilter
(
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
"otbLineRatioDetector
ImageFilter
.txx"
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Code/FeatureExtraction/otbLineRatioDetector.txx
+
10
−
10
View file @
c93c6e70
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
$Id$
$Id$
=========================================================================*/
=========================================================================*/
#ifndef __otbLineRatioDetector_txx
#ifndef __otbLineRatioDetector
ImageFilter
_txx
#define __otbLineRatioDetector_txx
#define __otbLineRatioDetector
ImageFilter
_txx
#include "otbLineRatioDetector.h"
#include "otbLineRatioDetector
ImageFilter
.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()
LineRatioDetector
ImageFilter
<TInputImage, TOutputImage, InterpolatorType>::LineRatioDetector
ImageFilter
()
{
{
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 LineRatioDetector
ImageFilter
<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>
LineRatioDetector
ImageFilter
< 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 LineRatioDetector
ImageFilter
< TInputImage, TOutputImage, InterpolatorType>::OutputImageType *
LineRatioDetector< TInputImage, TOutputImage, InterpolatorType>
LineRatioDetector
ImageFilter
< 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 LineRatioDetector
ImageFilter
< 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
LineRatioDetector
ImageFilter
<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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment