public class ImageShape extends Object
| Modifier and Type | Method and Description |
|---|---|
static ij.process.ImageProcessor |
addBorders(ij.process.ImageProcessor image,
int left,
int right,
int top,
int bottom)
Adds the specified number of pixels around the input image, and returns
the resulting image.
|
static ij.ImageStack |
addBorders(ij.ImageStack image,
int left,
int right,
int top,
int bottom,
int front,
int back)
Adds the specified number of voxels around the input image, and returns
the resulting image.
|
static ij.process.ImageProcessor |
cropRect(ij.process.ImageProcessor image,
int x0,
int y0,
int width,
int height)
Crops a rectangular region from the input image.
|
static ij.ImageStack |
cropRect(ij.ImageStack image,
int x0,
int y0,
int z0,
int width,
int height,
int depth)
Crops a rectangular region from the input 3D image.
|
public static final ij.process.ImageProcessor addBorders(ij.process.ImageProcessor image,
int left,
int right,
int top,
int bottom)
image - the input imageleft - the number of pixels to add to the left of the imageright - the number of pixels to add to the right of the imagetop - the number of pixels to add on top of the imagebottom - the number of pixels to add at the bottom of the imagepublic static final ij.ImageStack addBorders(ij.ImageStack image,
int left,
int right,
int top,
int bottom,
int front,
int back)
image - the input imageleft - the number of pixels to add to the left of the imageright - the number of pixels to add to the right of the imagetop - the number of pixels to add on top of the imagebottom - the number of pixels to add at the bottom of the imagefront - the number of pixels to add on the front of the imageback - the number of pixels to add at the back of the imagepublic static final ij.process.ImageProcessor cropRect(ij.process.ImageProcessor image,
int x0,
int y0,
int width,
int height)
image - the image to cropx0 - the x-position of the upper-left corner of the region to cropy0 - the y-position of the upper-left corner of the region to cropwidth - the width of the region to cropheight - the height of the region to croppublic static final ij.ImageStack cropRect(ij.ImageStack image,
int x0,
int y0,
int z0,
int width,
int height,
int depth)
image - the image to cropx0 - the x-position of the upper-left corner of the region to cropy0 - the y-position of the upper-left corner of the region to cropz0 - the z-position of the upper-left corner of the region to cropwidth - the width of the region to cropheight - the height of the region to cropdepth - the depth of the region to cropCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.