lancelevine / SlicerDRRGenerator

A 3D Slicer extension that generates Digitally Reconstructed Radiographs
12 stars 5 forks source link

Error /Volumes/D/S/S-0-build/ITK/Modules/Bridge/VTK/include/itkVTKImageImport.hxx:289: ITK ERROR: VTKImageToImageFilter(0x7fbeda3980d0): Input scalar type is float but should be short #9

Open dillonhaughton opened 1 year ago

dillonhaughton commented 1 year ago

When trying to run this code I get the following error message in Slicer. Any idea what I am doing wrong?

lancelevine commented 1 year ago

Try changing data type to short , I think in the Volumes module

Sent from my iPhone

On Feb 7, 2023, at 11:27 PM, dillonhaughton @.***> wrote:

 When trying to run this code I get the following error message in Slicer. Any idea what I am doing wrong?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

dillonhaughton commented 1 year ago

This fixed that error. Was able to convert to short in the Cast Scalar Volume Module. Now I'm getting the following error already cited in another thread

Error writing output_fixed.nrrd: [nrrd] nrrdSave: couldn't fopen("output_fixed.nrrd","wb"): Read-only file system

Seems to be related to using it on a Mac operating system

lancelevine commented 1 year ago

I did all the testing on a windows computer :/ sorry not sure how to fix that. It’s likely a generic slicer issue if you try googling it

Sent from my iPhone

On Feb 8, 2023, at 6:36 PM, dillonhaughton @.***> wrote:

 This fixed that error. Was able to convert to short in the Cast Scalar Volume Module. Now I'm getting the following error already cited in another thread

Error writing output_fixed.nrrd: [nrrd] nrrdSave: couldn't fopen("output_fixed.nrrd","wb"): Read-only file system

Seems to be related to using it on a Mac operating system

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.