# Issue with Volume Cropping

**URL:** <https://discourse.slicer.org/t/issue-with-volume-cropping/34335>\
**Category:** Support\
**Tags:** cropping\
**Created:** [February 14, 2024, 11:07pm UTC](https://discourse.slicer.org/t/issue-with-volume-cropping/34335 "2024-02-14T23:07:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph00](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@joseph00](https://discourse.slicer.org/u/joseph00)\
**Post date:** [February 14, 2024, 11:07pm UTC](https://discourse.slicer.org/t/issue-with-volume-cropping/34335/1 "2024-02-14T23:07:51Z")

</div>

Hello everyone,

I am encountering an issue with the volume cropping functionality in 3D Slicer and would greatly appreciate any assistance or guidance you could provide.

When attempting to perform a volume crop Volume module, I am encountering errors that prevent the operation from completing successfully.  
I followed these steps for volume cropping:

1. Select image
2. Create a ROI for cropping
3. Create a new volume as output.  
But, when I click “apply”, the selected image is not cropped.

Specifically, I am receiving these errors on Error Log:

1. 

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/db344df505bc646072a724c1a06f919001ade7f9.png)

1. “Could not create an instance of “InverseDisplacementFieldTransform\_double\_3\_3”  
The usual cause of this error is not registering the transform with TransformFactory  
Currently registered Transforms:  
“AffineTransform\_double\_2\_2”  
“AffineTransform\_double\_3\_3”  
“AffineTransform\_double\_4\_4”  
“AffineTransform\_float\_2\_2”  
“AffineTransform\_float\_3\_3”  
“AffineTransform\_float\_4\_4”  
“AzimuthElevationToCartesianTransform\_double\_3\_3”  
“AzimuthElevationToCartesianTransform\_float\_3\_3”  
“BSplineDeformableTransform\_double\_2\_2”  
“BSplineDeformableTransform\_double\_3\_3”  
“BSplineDeformableTransform\_float\_2\_2”  
“BSplineDeformableTransform\_float\_3\_3”  
“BSplineSmoothingOnUpdateDisplacementFieldTransform\_double\_2\_2”  
“BSplineSmoothingOnUpdateDisplacementFieldTransform\_double\_3\_3”  
“BSplineSmoothingOnUpdateDisplacementFieldTransform\_float\_2\_2”  
“BSplineSmoothingOnUpdateDisplacementFieldTransform\_float\_3\_3”  
“BSplineTransform\_double\_2\_2”  
“BSplineTransform\_double\_3\_3”  
“BSplineTransform\_float\_2\_2”  
“BSplineTransform\_float\_3\_3”  
“CenteredAffineTransform\_double\_2\_2”  
“CenteredAffineTransform\_double\_3\_3”  
“CenteredAffineTransform\_float\_2\_2”  
“CenteredAffineTransform\_float\_3\_3”  
“CenteredEuler3DTransform\_double\_3\_3”  
“CenteredEuler3DTransform\_float\_3\_3”  
“CenteredRigid2DTransform\_double\_2\_2”  
“CenteredRigid2DTransform\_float\_2\_2”  
“CenteredSimilarity2DTransform\_double\_2\_2”  
“CenteredSimilarity2DTransform\_float\_2\_2”  
“ComposeScaleSkewVersor3DTransform\_double\_3\_3”  
“ComposeScaleSkewVersor3DTransform\_float\_3\_3”  
“CompositeTransform\_double\_2\_2”  
“CompositeTransform\_double\_3\_3”  
“CompositeTransform\_double\_4\_4”  
“CompositeTransform\_float\_2\_2”  
“CompositeTransform\_float\_3\_3”  
“CompositeTransform\_float\_4\_4”  
“ConstantVelocityFieldTransform\_double\_2\_2”  
“ConstantVelocityFieldTransform\_double\_3\_3”  
“ConstantVelocityFieldTransform\_float\_2\_2”  
“ConstantVelocityFieldTransform\_float\_3\_3”  
“DisplacementFieldTransform\_double\_2\_2”  
“DisplacementFieldTransform\_double\_3\_3”  
“DisplacementFieldTransform\_float\_2\_2”  
“DisplacementFieldTransform\_float\_3\_3”  
“Euler2DTransform\_double\_2\_2”  
“Euler2DTransform\_float\_2\_2”  
“Euler3DTransform\_double\_3\_3”  
“Euler3DTransform\_float\_3\_3”  
“FixedCenterOfRotationAffineTransform\_double\_3\_3”  
“FixedCenterOfRotationAffineTransform\_float\_3\_3”  
“GaussianExponentialDiffeomorphicTransform\_double\_2\_2”  
“GaussianExponentialDiffeomorphicTransform\_double\_3\_3”  
“GaussianExponentialDiffeomorphicTransform\_float\_2\_2”  
“GaussianExponentialDiffeomorphicTransform\_float\_3\_3”  
“GaussianSmoothingOnUpdateDisplacementFieldTransform\_double\_2\_2”  
“GaussianSmoothingOnUpdateDisplacementFieldTransform\_double\_3\_3”  
“GaussianSmoothingOnUpdateDisplacementFieldTransform\_float\_2\_2”  
“GaussianSmoothingOnUpdateDisplacementFieldTransform\_float\_3\_3”  
“GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform\_double\_2\_2”  
“GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform\_double\_3\_3”  
“GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform\_float\_2\_2”  
“GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform\_float\_3\_3”  
“IdentityTransform\_double\_2\_2”  
“IdentityTransform\_double\_3\_3”  
“IdentityTransform\_double\_4\_4”  
“IdentityTransform\_float\_2\_2”  
“IdentityTransform\_float\_3\_3”  
“IdentityTransform\_float\_4\_4”  
“QuaternionRigidTransform\_double\_3\_3”  
“QuaternionRigidTransform\_float\_3\_3”  
“Rigid2DTransform\_double\_2\_2”  
“Rigid2DTransform\_float\_2\_2”  
“Rigid3DPerspectiveTransform\_double\_3\_2”  
“Rigid3DPerspectiveTransform\_float\_3\_2”  
“Rigid3DTransform\_double\_3\_3”  
“Rigid3DTransform\_float\_3\_3”  
“ScalableAffineTransform\_double\_3\_3”  
“ScalableAffineTransform\_float\_3\_3”  
“ScaleLogarithmicTransform\_double\_3\_3”  
“ScaleLogarithmicTransform\_float\_3\_3”  
“ScaleSkewVersor3DTransform\_double\_3\_3”  
“ScaleSkewVersor3DTransform\_float\_3\_3”  
“ScaleTransform\_double\_2\_2”  
“ScaleTransform\_double\_3\_3”  
“ScaleTransform\_double\_4\_4”  
“ScaleTransform\_float\_2\_2”  
“ScaleTransform\_float\_3\_3”  
“ScaleTransform\_float\_4\_4”  
“ScaleVersor3DTransform\_double\_3\_3”  
“ScaleVersor3DTransform\_float\_3\_3”  
“Similarity2DTransform\_double\_2\_2”  
“Similarity2DTransform\_float\_2\_2”  
“Similarity3DTransform\_double\_3\_3”  
“Similarity3DTransform\_float\_3\_3”  
“ThinPlateSplineKernelTransform\_double\_3\_3”  
“ThinPlateSplineKernelTransform\_float\_3\_3”  
“TimeVaryingBSplineVelocityFieldTransform\_double\_2\_2”  
“TimeVaryingBSplineVelocityFieldTransform\_double\_3\_3”  
“TimeVaryingBSplineVelocityFieldTransform\_float\_2\_2”  
“TimeVaryingBSplineVelocityFieldTransform\_float\_3\_3”  
“TimeVaryingVelocityFieldTransform\_double\_2\_2”  
“TimeVaryingVelocityFieldTransform\_double\_3\_3”  
“TimeVaryingVelocityFieldTransform\_float\_2\_2”  
“TimeVaryingVelocityFieldTransform\_float\_3\_3”  
“TranslationTransform\_double\_2\_2”  
“TranslationTransform\_double\_3\_3”  
“TranslationTransform\_double\_4\_4”  
“TranslationTransform\_float\_2\_2”  
“TranslationTransform\_float\_3\_3”  
“TranslationTransform\_float\_4\_4”  
“VelocityFieldTransform\_double\_2\_2”  
“VelocityFieldTransform\_double\_3\_3”  
“VelocityFieldTransform\_float\_2\_2”  
“VelocityFieldTransform\_float\_3\_3”  
“VersorRigid3DTransform\_double\_3\_3”  
“VersorRigid3DTransform\_float\_3\_3”  
“VersorTransform\_double\_3\_3”  
“VersorTransform\_float\_3\_3”  
Resample Scalar/Vector/DWI Volume completed with errors”

I have attempted to troubleshoot the issue by reinstalling the software, but unfortunately, the problem persists.

If anyone in the community has experienced a similar issue or has any insights into resolving this problem, I would be extremely grateful for your assistance. Additionally, if there are any specific troubleshooting steps or configurations I should try, please do not hesitate to let me know.

Thank you very much for your time and assistance.  
P.S. I’m using 5.6.1 stable release, but I’ve tried also 5.7.0 release (I’m ubuntu user).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/f/df04eaef55c3df0ce5646806946c8a654d33fc4c.jpeg)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 15, 2024, 2:19am UTC](https://discourse.slicer.org/t/issue-with-volume-cropping/34335/2 "2024-02-15T02:19:52Z")

</div>

CropVolume works for me with 5.6.1 with the CTACardio from SampleData. Maybe try that data and also check that you have enough disk space.

---

<div class="post-metadata">

**Author:** ![joseph00](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@joseph00](https://discourse.slicer.org/u/joseph00)\
**Post date:** [February 15, 2024, 6:44am UTC](https://discourse.slicer.org/t/issue-with-volume-cropping/34335/3 "2024-02-15T06:44:40Z")

</div>

Thanks for your reply.

The crop function seems to work fine with example images (MRI image or CT image for example), but it’s failing with some of the CT scans I have.

Any idea why this might be happening?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 15, 2024, 7:09am UTC](https://discourse.slicer.org/t/issue-with-volume-cropping/34335/4 "2024-02-15T07:09:45Z")

</div>

Since this is specific to your data, the only way we can help you is if you can share the data so that we can replicate the issue and understand why it is happening.

Do you have any anonymized data that you can share?
