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
9ed59c0b
Commit
9ed59c0b
authored
18 years ago
by
Caroline Ruffel
Browse files
Options
Downloads
Patches
Plain Diff
nomsg
parent
7913b333
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/FeatureExtraction/otbLineCorrelationDetector.h
+12
-12
12 additions, 12 deletions
Code/FeatureExtraction/otbLineCorrelationDetector.h
Code/FeatureExtraction/otbLineCorrelationDetector.txx
+11
-11
11 additions, 11 deletions
Code/FeatureExtraction/otbLineCorrelationDetector.txx
with
23 additions
and
23 deletions
Code/FeatureExtraction/otbLineCorrelationDetector.h
+
12
−
12
View file @
9ed59c0b
...
...
@@ -8,8 +8,8 @@
$Id$
=========================================================================*/
#ifndef __otbLineCorrelationDetector_h
#define __otbLineCorrelationDetector_h
#ifndef __otbLineCorrelationDetector
ImageFilter
_h
#define __otbLineCorrelationDetector
ImageFilter
_h
#include
"itkBSplineInterpolateImageFunction.h"
#include
"itkImageToImageFilter.h"
...
...
@@ -26,7 +26,7 @@
namespace
otb
{
/** \class LineCorrelationDetector
/** \class LineCorrelationDetector
ImageFilter
* \brief Application of the filter of detection of linear features
*
* This class implements the Tupin's detector D2 used to detect
...
...
@@ -65,7 +65,7 @@ namespace otb
template
<
class
TInputImage
,
class
TOutputImage
,
class
InterpolatorType
=
itk
::
BSplineInterpolateImageFunction
<
TInputImage
>
>
class
ITK_EXPORT
LineCorrelationDetector
:
public
itk
::
ImageToImageFilter
<
TInputImage
,
TOutputImage
>
class
ITK_EXPORT
LineCorrelationDetector
ImageFilter
:
public
itk
::
ImageToImageFilter
<
TInputImage
,
TOutputImage
>
{
public:
/** Extract dimensions as well of the images of entry of exit. */
...
...
@@ -80,7 +80,7 @@ public:
typedef
TOutputImage
OutputImageType
;
/** typedef for the classes standards. */
typedef
LineCorrelationDetector
Self
;
typedef
LineCorrelationDetector
ImageFilter
Self
;
typedef
itk
::
ImageToImageFilter
<
InputImageType
,
OutputImageType
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
...
...
@@ -89,7 +89,7 @@ public:
itkNewMacro
(
Self
);
/** Return the nale of the class. */
itkTypeMacro
(
LineCorrelationDetector
,
itk
::
ImageToImageFilter
);
itkTypeMacro
(
LineCorrelationDetector
ImageFilter
,
itk
::
ImageToImageFilter
);
/** Typedefs to describe and access Interpolator */
typedef
typename
InterpolatorType
::
Pointer
InterpolatorPointer
;
...
...
@@ -130,16 +130,16 @@ public:
virtual
void
GenerateInputRequestedRegion
()
throw
(
itk
::
InvalidRequestedRegionError
);
const
OutputImageType
*
GetOutputDirection
();
const
OutputImageType
*
GetOutputDirection
s
();
protected:
LineCorrelationDetector
();
virtual
~
LineCorrelationDetector
()
{};
LineCorrelationDetector
ImageFilter
();
virtual
~
LineCorrelationDetector
ImageFilter
()
{};
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
void
BeforeThreadedGenerateData
();
/** LineCorrelationDetector can be implemented for a treatment of filter multithreaded.
/** LineCorrelationDetector
ImageFilter
can be implemented for a treatment of filter multithreaded.
* Thus, the ThreadedGenerateData() method is called for each thread process.
* The data image are allocated automatically by the mother class by calling the
* ThreadedGenerateData() method. ThreadedGenerateData can only write the portion
...
...
@@ -151,7 +151,7 @@ protected:
int
threadId
);
private
:
LineCorrelationDetector
(
const
Self
&
);
//purposely not implemented
LineCorrelationDetector
ImageFilter
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
/** Length of the linear feature = 2*m_LengthLine+1 */
...
...
@@ -174,7 +174,7 @@ private:
}
// end namespace otb
#ifndef OTB_MANUAL_INSTANTIATION
#include
"otbLineCorrelationDetector.txx"
#include
"otbLineCorrelationDetector
ImageFilter
.txx"
#endif
...
...
This diff is collapsed.
Click to expand it.
Code/FeatureExtraction/otbLineCorrelationDetector.txx
+
11
−
11
View file @
9ed59c0b
...
...
@@ -8,10 +8,10 @@
$Id$
=========================================================================*/
#ifndef __otbLineCorrelationDetector_txx
#define __otbLineCorrelationDetector_txx
#ifndef __otbLineCorrelationDetector
ImageFilter
_txx
#define __otbLineCorrelationDetector
ImageFilter
_txx
#include "otbLineCorrelationDetector.h"
#include "otbLineCorrelationDetector
ImageFilter
.h"
#include "itkDataObject.h"
#include "itkExceptionObject.h"
...
...
@@ -32,7 +32,7 @@ namespace otb
*
*/
template <class TInputImage, class TOutputImage, class InterpolatorType >
LineCorrelationDetector<TInputImage, TOutputImage, InterpolatorType>::LineCorrelationDetector()
LineCorrelationDetector
ImageFilter
<TInputImage, TOutputImage, InterpolatorType>::LineCorrelationDetector
ImageFilter
()
{
m_Radius.Fill(1);
m_LengthLine = 1;
...
...
@@ -42,7 +42,7 @@ LineCorrelationDetector<TInputImage, TOutputImage, InterpolatorType>::LineCorrel
}
template <class TInputImage, class TOutputImage, class InterpolatorType>
void LineCorrelationDetector<TInputImage, TOutputImage, InterpolatorType>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
void LineCorrelationDetector
ImageFilter
<TInputImage, TOutputImage, InterpolatorType>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
{
// call the superclass' implementation of this method
Superclass::GenerateInputRequestedRegion();
...
...
@@ -106,7 +106,7 @@ void LineCorrelationDetector<TInputImage, TOutputImage, InterpolatorType>::Gener
*/
template <class TInputImage, class TOutputImage, class InterpolatorType>
void
LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>
LineCorrelationDetector
ImageFilter
< TInputImage, TOutputImage, InterpolatorType>
::BeforeThreadedGenerateData()
{
...
...
@@ -125,16 +125,16 @@ LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>
}
template <class TInputImage, class TOutputImage, class InterpolatorType>
const typename LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>::OutputImageType *
LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>
::GetOutputDirection()
const typename LineCorrelationDetector
ImageFilter
< TInputImage, TOutputImage, InterpolatorType>::OutputImageType *
LineCorrelationDetector
ImageFilter
< TInputImage, TOutputImage, InterpolatorType>
::GetOutputDirection
s
()
{
this->Update();
return static_cast< const OutputImageType *> (m_DirectionOuputImage);
}
template< class TInputImage, class TOutputImage, class InterpolatorType>
void LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>
void LineCorrelationDetector
ImageFilter
< TInputImage, TOutputImage, InterpolatorType>
::ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
int threadId
...
...
@@ -409,7 +409,7 @@ void LineCorrelationDetector< TInputImage, TOutputImage, InterpolatorType>
*/
template <class TInputImage, class TOutput, class InterpolatorType>
void
LineCorrelationDetector<TInputImage, TOutput, InterpolatorType>::PrintSelf(std::ostream& os, itk::Indent indent) const
LineCorrelationDetector
ImageFilter
<TInputImage, TOutput, InterpolatorType>::PrintSelf(std::ostream& os, itk::Indent indent) const
{
Superclass::PrintSelf( os, indent );
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