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

Henry Cope henrydaviscope at gmail.com
Thu Apr 2 11:04:48 EDT 2020


Hello Simon,

Yes, I just build the ITK modules and the problem still persists. I'll go
post my question to ITK discourse.

Henry

On Wed, Apr 1, 2020 at 5:55 PM Simon Rit <simon.rit at creatis.insa-lyon.fr>
wrote:

> Hi,
> Yes, it should. Have you built the default ITK modules? If yes, I'm not
> sure what's going on but you can ask on itk discourse
> <http://discourse.itk.org/>.
> Simon
>
> On Wed, Apr 1, 2020 at 7:53 PM Henry Cope <henrydaviscope at gmail.com>
> wrote:
>
>> 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
>> _______________________________________________
>> Rtk-users mailing list
>> Rtk-users at public.kitware.com
>> https://public.kitware.com/mailman/listinfo/rtk-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20200402/5b2d8160/attachment.html>


More information about the Rtk-users mailing list