Skip to content
Snippets Groups Projects
Commit 0f1aadc7 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

Pbs. otbImage

parent fc5debec
No related branches found
No related tags found
No related merge requests found
...@@ -24,17 +24,17 @@ namespace otb ...@@ -24,17 +24,17 @@ namespace otb
* *
* Le Pixel peut etre de type simple ou alors un itk::RGBPixel, etc. * Le Pixel peut etre de type simple ou alors un itk::RGBPixel, etc.
* \note Ces classe est paramtre par le type de pixel des images d'entre et de sortie. Les images manipules dans cette classe * \note Ces classe est paramtre par le type de pixel des images d'entre et de sortie. Les images manipules dans cette classe
* sont de type "otb::Image". * sont de type "itk::Image".
* *
*/ */
template <class TInputPixel, class TOutputPixel> template <class TInputPixel, class TOutputPixel>
class ITK_EXPORT ExtractROI: class ITK_EXPORT ExtractROI:
public ExtractROIBase<otb::Image<TInputPixel,2> , otb::Image<TOutputPixel,2> > public ExtractROIBase<itk::Image<TInputPixel,2> , itk::Image<TOutputPixel,2> >
{ {
public: public:
/** Standard class typedefs. */ /** Standard class typedefs. */
typedef ExtractROI Self; typedef ExtractROI Self;
typedef ExtractROIBase<otb::Image<TInputPixel,2> , otb::Image<TOutputPixel,2> > Superclass; typedef ExtractROIBase<itk::Image<TInputPixel,2> , itk::Image<TOutputPixel,2> > Superclass;
typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer; typedef itk::SmartPointer<const Self> ConstPointer;
......
...@@ -87,7 +87,7 @@ int main( int argc, char * argv[] ) ...@@ -87,7 +87,7 @@ int main( int argc, char * argv[] )
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
//>FIXME itk::image-->OTB //>FIXME itk::image-->OTB
typedef itk::Image< InternalPixelType, 2 > InternalImageType; typedef itk::Image< InternalPixelType, 2 > InternalImageType;
typedef otb::Image< OutputPixelType, 2 > OutputImageType; typedef itk::Image< OutputPixelType, 2 > OutputImageType;
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
typedef otb::LineSpatialObjectList LinesListType; typedef otb::LineSpatialObjectList LinesListType;
......
...@@ -79,9 +79,9 @@ int main( int argc, char ** argv ) ...@@ -79,9 +79,9 @@ int main( int argc, char ** argv )
typedef unsigned char InputPixelType; typedef unsigned char InputPixelType;
typedef unsigned char OutputPixelType; typedef unsigned char OutputPixelType;
const unsigned int Dimension = 2; const unsigned int Dimension = 2;
//FIXME itk to otb image
typedef otb::Image< InputPixelType, Dimension > InputImageType; typedef itk::Image< InputPixelType, Dimension > InputImageType;
typedef otb::Image< OutputPixelType, Dimension > OutputImageType; typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment