public class Util
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ij.ImageStack |
clip(ij.ImageStack src,
Box3D voi)
Clip image
src to volume of interest voi . |
static Point3D |
decodeOrigin(ij.ImagePlus imp)
Decode value of the origin property of image
imp . |
static ij.ImageStack |
duplicateEmpty(ij.ImageStack src)
Create new image of the same type and size as the input image.
|
static void |
encodeOrigin(ij.ImagePlus imp,
Point3D origin)
Add origin property to image
imp . |
static Box3D |
getBoundingBox(ij.ImageStack src)
Computes a bounding box for an image.
|
static void |
offsetOrigin(ij.ImagePlus imp,
Point3D offset)
Add offset to the value of the origin property of image
imp . |
public static Box3D getBoundingBox(ij.ImageStack src)
src
- Input image (GRAY8).public static ij.ImageStack duplicateEmpty(ij.ImageStack src)
src
- Input image.src
without copying voxel values.public static ij.ImageStack clip(ij.ImageStack src, Box3D voi)
src
to volume of interest voi
.src
- Input image.voi
- Volume of interest.public static Point3D decodeOrigin(ij.ImagePlus imp)
imp
. The origin is stored in
property values 'origin.x', 'origin.y', and 'origin.z'. If a properly is missing or cannot be
parsed as a number it is assumed to be equal zero.imp
- Input image.public static void offsetOrigin(ij.ImagePlus imp, Point3D offset)
imp
.imp
- Input image.offset
- Value of the offset.decodeOrigin(ij.ImagePlus)
public static void encodeOrigin(ij.ImagePlus imp, Point3D origin)
imp
.imp
- Input image.origin
- New value of the origin.decodeOrigin(ij.ImagePlus)