View Issue Details

IDProjectCategoryView StatusLast Update
0003546Slicer4Module CropVolumepublic2018-03-02 11:02
Reportersmantzavinos Assigned Tolassoan  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.3.1 
Target VersionFixed in VersionSlicer 4.7.0 
Summary0003546: Crop Volume output spacing is sometime incorrect (depending on the input volume).
Description

The problem can be seen using the sample MRHead data.

When you extract a volume from this data and don’t choose to use isotropic output spacing, the spacing of two of the dimensions gets reversed. The original MRHead has a spacing of 1 in the axial plane and 1.3 in the sagittal plane. The extracted volume is opposite, with spacing of 1.3 in the axial plane and 1 in the sagittal plane.

Additional Information

I discovered this when mimicking the functionality of Crop Volume in a python module I was writing. I found that for this case, I could fix it by instead of getting the output spacing using the GetSpacing() command on the input volume, multiplying the IJKToRASMatrix by [1, 1, 1, 0] and taking the absolute value of the result. This would reverse the spacing when necessary and solved the problem for this volume at least.

I now have come across a dataset that is not at a right angle (i.e. there is more than one non-zero element per row of the IJKToRAS matrix) and my solution no longer works.

TagsNo tags attached.

Activities

lassoan

lassoan

2017-06-11 23:38

developer   ~0014771

This issue was fixed a few months ago.

Issue History

Date Modified Username Field Change
2014-01-07 03:55 smantzavinos New Issue
2014-01-07 03:55 smantzavinos Status new => assigned
2014-01-07 03:55 smantzavinos Assigned To => fedorov
2014-01-07 04:33 fedorov Status assigned => acknowledged
2017-06-11 23:38 lassoan Assigned To fedorov => lassoan
2017-06-11 23:38 lassoan Status acknowledged => resolved
2017-06-11 23:38 lassoan Resolution open => fixed
2017-06-11 23:38 lassoan Fixed in Version => Slicer 4.7.0
2017-06-11 23:38 lassoan Note Added: 0014771
2018-03-02 11:02 jcfr Status resolved => closed