DCBIA-OrthoLab / SlicerAutomatedDentalTools

A 3D Slicer extension to use AMASSS, ALI-CBCT and ALI-IOS
Other
86 stars 26 forks source link

ENH: Call to Crop volume module for tilted images #96

Closed Jeanneclre closed 7 months ago

Jeanneclre commented 7 months ago

Hello @allemangD

(Change in AutoCrop3D.) We noticed that if the ROI box was tilted compared to the ROI of the image, Autocrop wasn't cropping correctly because we didn't think about this case while working on it but Crop Volume does. So I added a checkbox to choose if we want to use the module Crop Volume. this way we can use the module with folders of volume and gain time.

I choose not to get rid of the code for Autocrop because Crop Volume doesn't handle Segmentation well (it was done just for Volume and not for labelVolume or Segmentation). Because of this compatibility issue, it mixes the 2 existing labels of the segmentation and add post processing for the clinicians.

For non tilted images, Autocrop3D is still a good solution.

Thanks, Jeanne