CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
178 stars 64 forks source link

Segmentations derived from ITK-SNAP won't load on CaPTk #1512

Open smajumd4 opened 1 year ago

smajumd4 commented 1 year ago

The bug

When we try to load a segmentation that was genrated ITK-SNAP or another software and overlay on top of the image that was segmented, it says that the physical dimensions do not match. However, a look into the nifti headers show that the dimensions are same.

How to reproduce

Steps to reproduce the behavior:

  1. Open a .nifti image on ITK-SNAP.
  2. Draw a 2D segmentation using the paintbrush.
  3. Save the segmentation as a mifti using Segementation > Save Segmentation image.
  4. Open the same .nifti image on CaPTk by File > Load > Image(s)
  5. Now open the mask file with File > Load > ROI
  6. A pop up shows up

Expected behavior

It should overlay the mask onto the image by itself without any issue since all the dimensions and voxel spacings match.

Screenshots

image

CaPTk Version

I tried 1.7.6 and 1.9.0

Desktop (please complete the following information):

Additional context

Please contact Shweta from the CBIG Lab if more information is required.