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
Julien Cabieces
otb
Commits
9dbd938e
Commit
9dbd938e
authored
17 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
Work in progress
parent
39b01bb5
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/Projections/otbTileMapTransform.h
+14
-14
14 additions, 14 deletions
Code/Projections/otbTileMapTransform.h
Code/Projections/otbTileMapTransform.txx
+24
-24
24 additions, 24 deletions
Code/Projections/otbTileMapTransform.txx
with
38 additions
and
38 deletions
Code/Projections/otb
NetworkedQuadTree
Transform.h
→
Code/Projections/otb
TileMap
Transform.h
+
14
−
14
View file @
9dbd938e
...
...
@@ -15,13 +15,13 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otb
NetworkedQuadTree
Transform_h
#define __otb
NetworkedQuadTree
Transform_h
#ifndef __otb
TileMap
Transform_h
#define __otb
TileMap
Transform_h
#include
<iostream>
#include
<sstream>
#include
<stdio.h>
// #include "projection/ossim
NetworkedQuadTree
Transform.h"
// #include "projection/ossim
TileMap
Transform.h"
#include
"itkTransform.h"
#include
"itkExceptionObject.h"
#include
"itkMacro.h"
...
...
@@ -31,13 +31,13 @@ PURPOSE. See the above copyright notices for more information.
#include
"base/ossimEllipsoid.h"
#include
"base/ossimEllipsoidFactory.h"
#include
"base/ossimString.h"
#include
"ossim/projection/ossim
NetworkedQuadTree
Model.h"
#include
"ossim/projection/ossim
TileMap
Model.h"
#include
"otbMapProjection.h"
namespace
otb
{
/** \class otb
NetworkedQuadTree
Transform
/** \class otb
TileMap
Transform
* \brief to do
**/
...
...
@@ -46,7 +46,7 @@ namespace otb
class
TScalarType
=
double
,
unsigned
int
NInputDimensions
=
2
,
unsigned
int
NOutputDimensions
=
2
>
class
ITK_EXPORT
NetworkedQuadTree
Transform
:
public
itk
::
Transform
<
TScalarType
,
// Data type for scalars
class
ITK_EXPORT
TileMap
Transform
:
public
itk
::
Transform
<
TScalarType
,
// Data type for scalars
NInputDimensions
,
// Number of dimensions in the input space
NOutputDimensions
>
// Number of dimensions in the output space
{
...
...
@@ -55,12 +55,12 @@ namespace otb
typedef
itk
::
Transform
<
TScalarType
,
NInputDimensions
,
NOutputDimensions
>
Superclass
;
typedef
NetworkedQuadTree
Transform
Self
;
typedef
TileMap
Transform
Self
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
typedef
typename
Superclass
::
ScalarType
ScalarType
;
typedef
ossim
NetworkedQuadTreeModel
OssimNetworkedQuadTree
TransformType
;
typedef
ossim
TileMapModel
OssimTileMap
TransformType
;
typedef
itk
::
Point
<
ScalarType
,
NInputDimensions
>
InputPointType
;
typedef
itk
::
Point
<
ScalarType
,
NOutputDimensions
>
OutputPointType
;
...
...
@@ -68,7 +68,7 @@ namespace otb
itkNewMacro
(
Self
);
/** Run-time type information (and related methods). */
itkTypeMacro
(
NetworkedQuadTree
Transform
,
Transform
);
itkTypeMacro
(
TileMap
Transform
,
Transform
);
typedef
InverseOrForwardTransformationEnum
DirectionOfMappingEnumType
;
...
...
@@ -111,19 +111,19 @@ namespace otb
virtual
void
PrintMap
()
const
;
protected:
NetworkedQuadTree
Transform
();
virtual
~
NetworkedQuadTree
Transform
();
Ossim
NetworkedQuadTreeTransformType
*
m_NetworkedQuadTree
Transform
;
TileMap
Transform
();
virtual
~
TileMap
Transform
();
Ossim
TileMapTransformType
*
m_TileMap
Transform
;
private
:
NetworkedQuadTree
Transform
(
const
Self
&
);
//purposely not implemented
TileMap
Transform
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
};
}
// namespace otb
#ifndef OTB_MANUAL_INSTANTIATION
#include
"otb
NetworkedQuadTree
Transform.txx"
#include
"otb
TileMap
Transform.txx"
#endif
#endif
This diff is collapsed.
Click to expand it.
Code/Projections/otb
NetworkedQuadTree
Transform.txx
→
Code/Projections/otb
TileMap
Transform.txx
+
24
−
24
View file @
9dbd938e
...
...
@@ -15,35 +15,35 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otb
NetworkedQuadTree
Transform_txx
#define __otb
NetworkedQuadTree
Transform_txx
#ifndef __otb
TileMap
Transform_txx
#define __otb
TileMap
Transform_txx
#include "otb
NetworkedQuadTree
Transform.h"
#include "otb
TileMap
Transform.h"
#include "otbMacro.h"
namespace otb
{
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::
NetworkedQuadTree
Transform() : Superclass(SpaceDimension,ParametersDimension)
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::
TileMap
Transform() : Superclass(SpaceDimension,ParametersDimension)
{
m_
NetworkedQuadTree
Transform = new Ossim
NetworkedQuadTree
TransformType();
m_
TileMap
Transform = new Ossim
TileMap
TransformType();
}
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::~
NetworkedQuadTree
Transform()
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::~
TileMap
Transform()
{
delete m_
NetworkedQuadTree
Transform;
delete m_
TileMap
Transform;
}
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
typename
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>::OutputPointType
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
typename
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>::OutputPointType
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::TransformPoint(const InputPointType & point) const
{
OutputPointType outputPoint;
...
...
@@ -59,9 +59,9 @@ namespace otb
//map projection
ossimGpt ossimGPoint;
// ossimGPoint=m_
NetworkedQuadTree
Transform->inverse(ossimDPoint);
m_
NetworkedQuadTree
Transform->lineSampleToWorld(ossimDPoint, ossimGPoint);
// otbGenericMsgDebugMacro(<< "Inverse : " << std::endl << m_
NetworkedQuadTree
Transform->print(std::cout));
// ossimGPoint=m_
TileMap
Transform->inverse(ossimDPoint);
m_
TileMap
Transform->lineSampleToWorld(ossimDPoint, ossimGPoint);
// otbGenericMsgDebugMacro(<< "Inverse : " << std::endl << m_
TileMap
Transform->print(std::cout));
outputPoint[0]=ossimGPoint.lon;
outputPoint[1]=ossimGPoint.lat;
...
...
@@ -76,9 +76,9 @@ namespace otb
//map projection
ossimDpt ossimDPoint;
// ossimDPoint=m_
NetworkedQuadTree
Transform->forward(ossimGPoint);
m_
NetworkedQuadTree
Transform->worldToLineSample(ossimGPoint, ossimDPoint);
// otbGenericMsgDebugMacro(<< "Forward : ========================= " << std::endl << m_
NetworkedQuadTree
Transform->print(std::cout));
// ossimDPoint=m_
TileMap
Transform->forward(ossimGPoint);
m_
TileMap
Transform->worldToLineSample(ossimGPoint, ossimDPoint);
// otbGenericMsgDebugMacro(<< "Forward : ========================= " << std::endl << m_
TileMap
Transform->print(std::cout));
outputPoint[0]=ossimDPoint.x;
outputPoint[1]=ossimDPoint.y;
...
...
@@ -100,11 +100,11 @@ namespace otb
///\return The geographic point corresponding to (0,0)
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
typename
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>::InputPointType
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
typename
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>::InputPointType
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::Origin()
{
ossimGpt ossimOrigin=m_
NetworkedQuadTree
Transform->origin();
ossimGpt ossimOrigin=m_
TileMap
Transform->origin();
InputPointType otbOrigin;
otbOrigin[0]= ossimOrigin.lat;
otbOrigin[1]= ossimOrigin.lon;
...
...
@@ -118,17 +118,17 @@ namespace otb
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
void
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::PrintMap() const
{
std::cout << m_
NetworkedQuadTree
Transform->print(std::cout);
std::cout << m_
TileMap
Transform->print(std::cout);
}
template<InverseOrForwardTransformationEnum Transform, class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
void
NetworkedQuadTree
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
void
TileMap
Transform<Transform, TScalarType, NInputDimensions, NOutputDimensions>
::SetLevel(unsigned char level)
{
m_
NetworkedQuadTree
Transform->setDepth(level);
m_
TileMap
Transform->setDepth(level);
}
} // namespace otb
...
...
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