CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

crop2D

Crops a given rectangle out of a given image.

Note: If the destination image pre-exists already, it will be overwritten and keep it’s dimensions.

Parameters

source : Image The image where a part will be cropped out. destination : Image The cropped image will be stored in this variable. start_x : Number The horizontal position of the region to crop in the source image. start_y : Number The vertical position of the region to crop in the source image. width : Number The width of the region to crop in the source image. height : Number The height of the region to crop in the source image.

Category: Transformations

Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clij2_-2.5.0.1.jar.

crop2D often follows after

crop2D is often followed by

Usage in ImageJ macro

Ext.CLIJ2_crop2D(Image source, Image destination, Number start_x, Number start_z, Number width, Number height);

Example notebooks

crop_and_paste
voronoi_otsu_labeling
crop_and_paste_images.ipynb
voronoi_otsu_labeling.ipynb
affine_transforms.ipynb

Example scripts

allocateBig2DImages.ijm
crop.ijm
crop_and_paste.ijm
voronoi_otsu_labeling.ijm

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint