Problem to save an mhd/raw image with voxel data type float
About you
CALKA Maxime, M2 trainee. I realize volumic image registration on CamiTK and I need to load/save MRI images.
Overview
They are a problem when you save a mhd/raw image with a voxel type float. After saving the voxel type is change to unsigned char and the image is not workable.
Steps to Reproduce
- Load in CamiTK an mhd/raw image with Voxel Data Type : float (ElementType = MET_FLOAT)
- Save the image with CamiTK in mhd/raw format (Save As)
- Load the new image
Normally, a entire grey image appear with the Voxel Data Type : unsigned char (ElementType = MET_UCHAR) (that is a problem)
Actual VS Expected Result
I load the image : okay I save the image : okay I load the new image : no expected result (I am supposed found my original image but the voxel type has change and the image is totally grey)
Relevant logs and/or screenshots
Interpretation & Possible fixes
Sorry, I haven't idea.
CamiTK Version
CamiTK Version:
- CamiTK version........................... CamiTK 4.1.2
- CamiTK Short Version..................... camitk-4.1
- CamiTK SO NAME........................... 4
- Operating System......................... WIN32
- Build type............................... DEBUG
- QT Version............................... 5.6.1
- VTK Version.............................. 6.3.0
- Global Installation Directory [G]........ C:/dev/CamiTK/install
- Local Installation Directory [L]......... C:/Users/calkam/AppData/Roaming/CamiTK
- Current Working Directory [W]............ C:/dev/CamiTK/install/bin
- Test Data Directory...................... C:/dev/CamiTK/install/share/camitk-4.1/testdata
- Component Extension Directories.......... C:/dev/CamiTK/install/lib/camitk-4.1/components
- Action Extension Directories............. C:/dev/CamiTK/install/lib/camitk-4.1/actions
- Number of Component Extensions........... 9 (locations: 9 global, 0 local, 0 in working directory, 0 manually installed by user)
- Number of File Extensions Supported...... 31
- Number of Action Extensions.............. 18 (locations: 18 global, 0 local, 0 in working directory, 0 manually installed by user)
- Number of Actions........................ 88
- Registered components:
- [G] Alias Wavefront OBJ Component...... obj
- [G] ItkImages Component................ hdr, spr, gipl, pic, lsm, nrrd, hdr.gz, nii, nii.gz, img, img.gz
- [G] Msh Component...................... msh
- [G] Off Component...................... off
- [G] STL Component...................... stl, STL
- [G] VRML 2 Component................... vrml, wrl
- [G] VTK Component...................... vtk
- [G] vtkImages Component................ jpg, png, tiff, tif, bmp, pbm, pgm, ppm, mhd, mha, raw
- [G] DICOM.............................. directory
- Registered actions:
- [G] Application Level Actions.......... 21 actions
- [G] Basic Mesh Extension............... 9 actions
- [G] Basic Topology..................... 2 actions
- [G] BoxVOIExtension.................... 1 actions
- [G] Frame Edition Extension............ 1 actions
- [G] ITK Filters........................ 14 actions
- [G] ITK Segmentation................... 3 actions
- [G] Image LUT.......................... 1 actions
- [G] ImageAcquisitionActionExtension.... 7 actions
- [G] Mesh Processing.................... 17 actions
- [G] MultiPickingExtension.............. 1 actions
- [G] Pixel Color Changer................ 1 actions
- [G] Reconstruction..................... 1 actions
- [G] Reorient Image Extension........... 1 actions
- [G] ResampleExtension.................. 1 actions
- [G] SegmentorExtension................. 1 actions
- [G] ShowIn3DExtension.................. 5 actions
- [G] VolumeRenderingExtension........... 1 actions
please do not remove anything below this line