Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
The Image Cropper
Icon of the Image Cropper Plugin.


Usage

The Image Cropper Plugin allows to crop and mask subvolumes out of the original image volume by defining a cubic bounding shape.

Bounding Shape.


A new bounding shape can be created by selecting an image and pressing the 'New' button. The bounding shape appears as a child node in the data manager. Alternatively, an existing bounding shape can be selected.

Basic Settings.


This bounding shape can be placed at an arbitrary position in the volume and can be easily adjusted by using the handles on each of the faces. When activated, the handles are shown in red, otherwise, they are colored white. Hovering over either the shape or a single handle allows modifying the bounding shape. Moving the handles changes the respective extent of the bounding shape, whereas moving the shape itself changes its position.

As soon as the bounding shape is placed at the desired position, pressing the button 'Crop' creates a new image assigned to the original image as a child node containing only the selected subvolume. The size of the subvolume equals the size of the bounding shape.
Pressing the 'Mask' button keeps the original image size but masks out the area not contained within the bounding shape bounds. In the case of 3D+t images, the whole time series is cropped by default.

Advanced settings

In the advanced settings view you find additional features:

Advanced Settings.


Mask with outside pixel

Assigns the value of the voxels outside of the bounding shape when 'Mask' is used.

Overwrite original image

By enabling this checkbox the image is replaced by the cropped subvolume. Be careful to use this option since there is no undo action available.

Crop current time step only

If you have an xD + t image, the whole time series (all timesteps) is cropped by default. In this case, the 'time geometry' of the current time step is used.

If the checkbox 'Only crop current time step' is ticked, the xD + t image is reduced to an xD image (e.g., 3D+t --> 3D) with the current time step only. That can be useful if you want to extract a single image or its corresponding subvolume of the time series.

Current issues

Cropping 2D images is not supported unless the are 3D images containing only a single slice. The user will be notified by a warning and the input is handled as a single label image.

Right now changing the shape or rotation of the bounding shape is not supported but might be integrated in the future.

Furthermore, a warning appears when the bounding shape is not aligned with the image. In this case, the handles can not be used correctly and get deactivated. You can continue to alter them by performing a 'Reinit' on the image.