Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Simon Rit
Have you tried without ITKImageIO? I think png is present by default anyway. I would also check if you are using the same configuration between ITK and your code (shared vs static libraries). On Wed, Apr 22, 2020 at 6:17 PM Isuru Suranga Wijesinghe < isurusuranga.wijesin...@gmail.com> wrote: >

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
*I have tried to change my CMake configuration as in the given asnwers but I have got an error as below.* *Severity Code Description Project File Line Suppression StateError LNK2001 unresolved external symbol "void __cdecl itk::JPEG2000ImageIOFactoryRegister__Private(void)"

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Simon Rit
Hi, Can you check this thread ? A similar problem was solved there. Note that I don't think that PNG can support float types. Simon On Wed, Apr 22, 2020 at 4:59 PM Isuru Suranga Wijesinghe < isurusuranga.wijesin...@gmail.com> wrote:

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
The problem is in the RTK I think. I was able to successfully save the output image as the .png extension with an ITK eample. I just checked with CMake GUI and it doesn't contain a such module. Please see the attachment. Any alternative approach is there ? On Wed, Apr 22, 2020 at 3:37 PM Andreas

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Andreas Andersen
It actually tells you the problem, you set the suffix of an unsupported type. However, it doesn't tell you that ITK can support PNG if you configure and compile with the CMake option Module_ITKIOPNG=ON (unless they changed it) I think the type should automatically register after a successful

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
Hi, I have tried to save the out image as .png and it gave an error as below. itk::ImageFileWriterException (003E08EFFCC0) Location: "unknown" File: D:\ITK\Source\Modules\IO\ImageBase\include\itkImageFileWriter.hxx Line: 128 Description: Could not create IO object for writing file

Re: [Rtk-users] using RTK with python

2020-04-22 Thread Aurélien Coussat
Hi! FirstReconstruction.py is initially meant to be called from the command line as it expects two command-line arguments (specified on line 7). When ran from a Jupyter Notebook (as in FirstReconstruction.ipynb), you need to manually provide values for sys.argv[1] (the output image) and