Skip to content
Snippets Groups Projects
Commit 5bccf0ca authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Finalisation de l'encapsulation de CAI

parent 0d4f69e4
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@ FILE(GLOB OTBIO_SRCS "*.cxx" )
#)
ADD_LIBRARY(OTBIO ${OTBIO_SRCS})
TARGET_LINK_LIBRARIES (OTBIO ITKIO)
TARGET_LINK_LIBRARIES (OTBIO ${CAI_LIBRARY} ${GDAL_LIBRARY} OTBCommon ITKIO ITKCommon)
INSTALL_TARGETS(/lib/otb OTBIO )
INSTALL_FILES(/include/otb/IO "(\\.h|\\.txx)$")
This diff is collapsed.
......@@ -21,14 +21,6 @@
#include "itkImageIOBase.h"
#include <stdio.h>
// Pour CAI
extern "C"
{
#define _CAI_IMAGE
#define _NOHDF16
#include "cai_image.h"
}
namespace otb
{
......@@ -90,9 +82,13 @@ private:
/** Methode permettant de recuperer le format et le nom de l'image a partir du
nom d'un fichier image. */
bool GetInfosCAI( const char * filename, std::string & CaiFileName, std::string & CaiFormat );
/** Determine si l'image est au format SPOT */
bool DetermineFormatSpot (char typspot, const char * str_repertoire ,
char * str_debut );
/** Pointer sur la structure CAI */
CAI_IMAGE * m_Cai;
// CAI_IMAGE * m_Cai;
char * m_ptrCai;
/** Nombre d'octets par pixel */
int m_NbOctetPixel;
};
......
......@@ -37,9 +37,9 @@ ImageIOFactory::RegisterBuiltInFactories()
itk::ObjectFactoryBase::RegisterFactory( CAIImageIOFactory::New() );
// GDAL : Nouveau format de l'OTB
// itk::ObjectFactoryBase::RegisterFactory( GDALImageIOFactory::New() );
firstTime = false;
}
}
firstTime = false;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment