Error while saving file as raw (Could not create IO object for writing file)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while saving file as raw (Could not create IO object for writing file)

tarun14110
Getting below error while trying to save the segmented labels as raw file. If use other extension like nrrd instead of raw, it works fine. What may be the issue?

itk::ImageFileWriterException (0x72fb3d0)
Location: "unknown"
File: /home/kitware/Dashboards/Nightly/Slicer-0-build/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.hxx
Line: 151
Description:  Could not create IO object for writing file /home/mafia/Documents/Segmentation-label.raw
  Tried to create one of the following:
    NiftiImageIO
    NrrdImageIO
    GiplImageIO
    JPEGImageIO
    GDCMImageIO
    BMPImageIO
    LSMImageIO
    PNGImageIO
    TIFFImageIO
    VTKImageIO
    StimulateImageIO
    BioRadImageIO
    MetaImageIO
    MRCImageIO
    MGHImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.



--
Regards,
Tarun kumar yadav
B.Tech 3rd year (CSE)

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Error while saving file as raw (Could not create IO object for writing file)

lasso2

Raw format is not supported because you would lose essential metadata. Save in nhdr format and turn off compression. It creates a header with all metadata and a raw file. Also, Nrrd reader is available for most programming languages, Matlab, etc.

 

Andras

 

From: [hidden email]
Sent: Thursday, April 6, 2017 6:19 PM
To: [hidden email]
Subject: [slicer-devel] Error while saving file as raw (Could not create IO object for writing file)

 

Getting below error while trying to save the segmented labels as raw file. If use other extension like nrrd instead of raw, it works fine. What may be the issue?

itk::ImageFileWriterException (0x72fb3d0)
Location: "unknown"
File: /home/kitware/Dashboards/Nightly/Slicer-0-build/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.hxx
Line: 151
Description:  Could not create IO object for writing file /home/mafia/Documents/Segmentation-label.raw
  Tried to create one of the following:
    NiftiImageIO
    NrrdImageIO
    GiplImageIO
    JPEGImageIO
    GDCMImageIO
    BMPImageIO
    LSMImageIO
    PNGImageIO
    TIFFImageIO
    VTKImageIO
    StimulateImageIO
    BioRadImageIO
    MetaImageIO
    MRCImageIO
    MGHImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.



--
Regards,
Tarun kumar yadav
B.Tech 3rd year (CSE)

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ