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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
9e8f520c
Commit
9e8f520c
authored
14 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: simplify code. avoid empty ThreadedGenerateData and add SetInPlace(false) support
parent
704b2e52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Projections/otbGCPsToRPCSensorModelImageFilter.h
+10
-10
10 additions, 10 deletions
Code/Projections/otbGCPsToRPCSensorModelImageFilter.h
with
10 additions
and
10 deletions
Code/Projections/otbGCPsToRPCSensorModelImageFilter.h
+
10
−
10
View file @
9e8f520c
...
...
@@ -18,7 +18,7 @@
#ifndef __otbGCPsToRPCSensorModelImageFilter_h
#define __otbGCPsToRPCSensorModelImageFilter_h
#include
"itk
InPlace
ImageFilter.h"
#include
"itk
Cast
ImageFilter.h"
#include
"otbDEMHandler.h"
#include
"projection/ossimRpcProjection.h"
...
...
@@ -63,21 +63,23 @@ namespace otb {
* if the number of GCPs is lower than 16.
*
* This filter does not modify the image buffer, but only the
* metadata. Therefore, it is implemented as an InPlaceImageFilter.
* metadata. Therefore, it provides in-place support, which is
* enabled by default. Call SetInPlace(false) to change the default
* behavior.
*
* The output image can be given to the OrthorectificationFilter.
*
*/
template
<
class
TImage
>
class
ITK_EXPORT
GCPsToRPCSensorModelImageFilter
:
public
itk
::
InPlace
ImageFilter
<
TImage
>
public
itk
::
Cast
ImageFilter
<
TImage
,
TImage
>
{
public:
/** Standard class typedefs. */
typedef
GCPsToRPCSensorModelImageFilter
Self
;
typedef
itk
::
InPlace
ImageFilter
<
TImage
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
typedef
GCPsToRPCSensorModelImageFilter
Self
;
typedef
itk
::
Cast
ImageFilter
<
TImage
,
TImage
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** GCPs typedefs */
typedef
itk
::
Point
<
double
,
2
>
Point2DType
;
...
...
@@ -97,7 +99,7 @@ public:
itkNewMacro
(
Self
);
/** Run-time type information (and related methods). */
itkTypeMacro
(
GCPsToRPCSensorModelImageFilter
,
InPlace
ImageFilter
);
itkTypeMacro
(
GCPsToRPCSensorModelImageFilter
,
Cast
ImageFilter
);
/** Extract dimension from input and output image. */
itkStaticConstMacro
(
ImageDimension
,
unsigned
int
,
...
...
@@ -175,8 +177,6 @@ protected:
* GenerateOutputInformation() method */
virtual
void
GenerateOutputInformation
();
virtual
void
ThreadedGenerateData
(
const
typename
TImage
::
RegionType
&
,
int
)
{}
private:
GCPsToRPCSensorModelImageFilter
(
const
Self
&
);
// purposely not implemented
void
operator
=
(
const
Self
&
);
// purposely not implemented
...
...
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