[Rtk-users] Converting 3D Image to 2d image

Henry Cope henrydaviscope at gmail.com
Wed Apr 1 13:53:15 EDT 2020


Good Afternoon,

I'm currently trying to create a program to read a given 3D image, perform
one forward projection from a varying rotation (Only one slice is made),
convert that to a 2D image and write it to a PNG file. I've modified the
base rtkforwardprojection.cxx program by adding code from
ImageReadExtractWrite.cxx to convert to a 2d image. However, when I attempt
to output to a PNG file, I receive the error:

Description:  Could not create IO object for writing file projectedImage.png
  Tried to create one of the following:
DCMImagXImageIO
    GDCMImageIO
    HisImageIO
    HncImageIO
    HndImageIO
    ImagXImageIO
    MetaImageIO
    OraImageIO
    TIFFImageIO
    XRadImageIO
    XimImageIO
You probably failed to set a file suffix, or
    set the suffix to an unsupported type.

When I look on the ITK wiki, it states that png is a supported file type,
so I'm wondering what I'm doing wrong

Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20200401/53655587/attachment.html>


More information about the Rtk-users mailing list