[Insight-users] Including MINC2.0 IO support in ITK

Richard Beare richard.beare at gmail.com
Tue Jan 9 16:30:29 EST 2007


Hi,

I had some success under linux a while back. I can't remember the
details, but I've attached the files I changed.

On 1/10/07, Mark Bouts <mark at invivonmr.uu.nl> wrote:
> Hi Insight-Users,
>
> I have a question regarding linking corresponding libraries for MINC2.0
> in ITK.
>
> I'm trying to link the corresponding libraries netcdf, hdf5 and minc2
> into the CMakeLists.txt file of the /Code/IO directory. However, I don't
> have a clue on how to do this.
> I have tried some options, but do not seem to succeed in doing the
> correct thing.
>
> More info can be read on: http://insight-journal.org/dspace/handle/1926/191
>
> Maybe someone can help on my way? I would appreciate it!
>
> Mark
>
> ps. I'm currently working on solaris
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
SET(ITKIO_SRCS
  itkNiftiImageIO.cxx
  itkNiftiImageIOFactory.cxx
  itkAnalyzeImageIO.cxx
  itkAnalyzeImageIOFactory.cxx
  itkArchetypeSeriesFileNames.cxx
  itkBioRadImageIO.cxx
  itkBioRadImageIOFactory.cxx
  itkBMPImageIO.cxx
  itkBMPImageIOFactory.cxx
  itkBrains2HeaderBase.cxx
  itkBrains2HeaderFactory.cxx
  itkBrains2IPLHeaderInfo.cxx
  itkBrains2MaskHeaderInfo.cxx
  itkBrains2MaskImageIO.cxx
  itkBrains2MaskImageIOFactory.cxx
  itkDICOMImageIO2.cxx
  itkDICOMImageIO2Factory.cxx
  itkDICOMSeriesFileNames.cxx
  itkDicomImageIOFactory.cxx
  itkGDCMImageIO.cxx
  itkGDCMImageIOFactory.cxx
  itkGDCMSeriesFileNames.cxx
  itkGE4ImageIO.cxx
  itkGE4ImageIOFactory.cxx
  itkGE5ImageIO.cxx
  itkGE5ImageIOFactory.cxx
  itkGEAdwImageIO.cxx
  itkGEAdwImageIOFactory.cxx
  itkGiplImageIO.cxx
  itkGiplImageIOFactory.cxx
  itkIOCommon.cxx
  itkIPLCommonImageIO.cxx
  itkIPLFileNameList.cxx
  itkImageIOBase.cxx
  itkImageIOFactory.cxx
  itkImageIORegion.cxx
  itkJPEGImageIO.cxx
  itkJPEGImageIOFactory.cxx
  itkLSMImageIO.cxx
  itkLSMImageIOFactory.cxx
  itkMetaImageIO.cxx
  itkMetaImageIOFactory.cxx
  itkNrrdImageIO.cxx
  itkNrrdImageIOFactory.cxx
  itkNumericSeriesFileNames.cxx
  itkPNGImageIO.cxx
  itkPNGImageIOFactory.cxx
  itkPolygonGroupSpatialObjectXMLFile.cxx
  itkRegularExpressionSeriesFileNames.cxx
  itkSiemensVisionImageIO.cxx
  itkSiemensVisionImageIOFactory.cxx
  itkStimulateImageIO.cxx
  itkStimulateImageIOFactory.cxx
  itkTIFFImageIO.cxx
  itkTIFFImageIOFactory.cxx
  itkTransformFileReader.cxx
  itkTransformFileWriter.cxx
  itkVTKImageIO.cxx
  itkVTKImageIOFactory.cxx
  itkXMLFile.cxx
)

IF(USE_MINC2)
  INCLUDE_DIRECTORIES( ${MINC2_INCLUDE_PATH} ${HDF5_INCLUDE_PATH} ${NETCDF_INCLUDE_PATH})
  SET(ITKIO_SRCS ${ITKIO_SRCS}  itkMINC2ImageIO.cxx itkMINC2ImageIOFactory.cxx)
ENDIF(USE_MINC2)


# Add ITKIO library
ADD_LIBRARY(ITKIO ${ITKIO_SRCS})

TARGET_LINK_LIBRARIES(ITKIO
ITKCommon
ITKNrrdIO
itkjpeg8
itkjpeg12
itkjpeg16
${ITK_GDCM_LIBRARIES}
${ITK_PNG_LIBRARIES}
${ITK_ZLIB_LIBRARIES}
${ITK_TIFF_LIBRARIES}
ITKSpatialObject
ITKMetaIO
ITKDICOMParser
ITKEXPAT
ITKniftiio)

IF(USE_MINC2)
   TARGET_LINK_LIBRARIES(ITKIO ${NETCDF_LIB} ${HDF5_LIB} ${MINC2_LIB})
ENDIF(USE_MINC2)

IF(ITK_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(ITKIO PROPERTIES ${ITK_LIBRARY_PROPERTIES})
ENDIF(ITK_LIBRARY_PROPERTIES)
INSTALL_TARGETS(/lib/InsightToolkit ITKIO)
INSTALL_FILES(/include/InsightToolkit/IO "(\\.h|\\.txx)$")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkImageIOFactory.cxx
Type: text/x-c++src
Size: 4053 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070110/e48992f9/itkImageIOFactory.cxx


More information about the Insight-users mailing list