Skip to content
Snippets Groups Projects
Commit 80c8ce41 authored by Julien Michel's avatar Julien Michel
Browse files

Qu'est ce que c'est que ce truc ? On faisait appel à la factory ITK, du coup...

Qu'est ce que c'est que ce truc ? On faisait appel à la factory ITK, du coup impossible d'écrire du TIFF double (et aucunes factory otb). Je me demande d'où cela vient.
parent c0c8048b
Branches
Tags
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "itkObjectFactoryBase.h" #include "itkObjectFactoryBase.h"
#include "itkImageFileWriter.h" #include "itkImageFileWriter.h"
#include "itkImageRegionMultidimensionalSplitter.h" #include "itkImageRegionMultidimensionalSplitter.h"
#include "otbImageIOFactory.h"
#include "otbMacro.h" #include "otbMacro.h"
#include "otbConfigure.h" #include "otbConfigure.h"
...@@ -324,7 +325,7 @@ StreamingImageFileWriter<TInputImage> ...@@ -324,7 +325,7 @@ StreamingImageFileWriter<TInputImage>
{ {
itkDebugMacro(<<"Attempting factory creation of ImageIO for file: " itkDebugMacro(<<"Attempting factory creation of ImageIO for file: "
<< m_FileName); << m_FileName);
this->SetImageIO( itk::ImageIOFactory::CreateImageIO( m_FileName.c_str(), this->SetImageIO( ImageIOFactory::CreateImageIO( m_FileName.c_str(),
itk::ImageIOFactory::WriteMode ) ); itk::ImageIOFactory::WriteMode ) );
/* m_ImageIO = ImageIOFactory::CreateImageIO( m_FileName.c_str(), /* m_ImageIO = ImageIOFactory::CreateImageIO( m_FileName.c_str(),
...@@ -339,7 +340,7 @@ StreamingImageFileWriter<TInputImage> ...@@ -339,7 +340,7 @@ StreamingImageFileWriter<TInputImage>
<< m_FileName ); << m_FileName );
itkDebugMacro(<<"Attempting creation of ImageIO with a factory for file:" itkDebugMacro(<<"Attempting creation of ImageIO with a factory for file:"
<< m_FileName); << m_FileName);
m_ImageIO = itk::ImageIOFactory::CreateImageIO( m_FileName.c_str(), m_ImageIO = ImageIOFactory::CreateImageIO( m_FileName.c_str(),
itk::ImageIOFactory::WriteMode ); itk::ImageIOFactory::WriteMode );
m_FactorySpecifiedImageIO = true; m_FactorySpecifiedImageIO = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment