[Insight-users] error when writing/reading an imageMaskSpatialObject

Yannick Pannier pannier at lms.polytechnique.fr
Wed Feb 20 05:29:27 EST 2008


Hello everybody,

I have an error when trying to write/read an ImageMaskSpatialObject :

 " terminate called after throwing an instance of 'itk::ExceptionObject'
  what():  
/usr/local/include/InsightToolkit/IO/itkSpatialObjectReader.txx:52:
  itk::ERROR: SpatialObjectReader(0x86d8bc0): No groups were found in 
file imageMaskSO.meta"

File attached reproduces the error.

Any help would be appreciated ...
Thanks,
Yannick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReadWriteImageMaskSpatialObject.cxx
Type: text/x-c++src
Size: 5012 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20080220/842cf08e/ReadWriteImageMaskSpatialObject.cxx
-------------- next part --------------
# Find ITK.
FIND_PACKAGE(ITK REQUIRED)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ENDIF(ITK_FOUND)

ADD_EXECUTABLE(ReadWriteImageMaskSpatialObject ReadWriteImageMaskSpatialObject.cxx)
TARGET_LINK_LIBRARIES(ReadWriteImageMaskSpatialObject ITKCommon ITKIO ITKMetaIO ITKAlgorithms ITKNumerics ITKSpatialObject)


More information about the Insight-users mailing list