public class IntBounds3D extends Object
IntBounds2D| Constructor and Description |
|---|
IntBounds3D(int xmin,
int xmax,
int ymin,
int ymax,
int zmin,
int zmax)
Default constructor of the IntBounds3D object, that specifies the bounds
along each dimension.
|
| Modifier and Type | Method and Description |
|---|---|
IntBounds3D |
addBorder(int border)
Adds the given amount of voxels along each direction.
|
int |
getDepth()
Computes the depth of the bounding box, corresponding to the extent
along the Z dimension.
|
int |
getHeight()
Computes the height of the bounding box, corresponding to the extent
along the Y dimension.
|
int |
getWidth()
Computes the width of the bounding box, corresponding to the extent along
the X dimension.
|
int |
getXMax() |
int |
getXMin() |
int |
getYMax() |
int |
getYMin() |
int |
getZMax() |
int |
getZMin() |
IntBounds3D |
intersection(IntBounds3D bounds)
Computes the intersection between the two bounds, such that the result is
totally contained within this bounds and the other bounds.
|
boolean |
isValid()
Checks if this Bounds is valid, by checking that for each dimension, the
minimum coordinate is lower than (or equal to) the maximum coordinate.
|
IntBounds3D |
union(IntBounds3D bounds)
Computes the union of the two bounds, by retaining the max extent along
each dimension.
|
public IntBounds3D(int xmin,
int xmax,
int ymin,
int ymax,
int zmin,
int zmax)
xmin - the minimum x coordinatexmax - the maximum x coordinateymin - the minimum y coordinateymax - the maximum y coordinatezmin - the minimum z coordinatezmax - the maximum z coordinatepublic IntBounds3D addBorder(int border)
border - the number of voxels to add in each directionpublic IntBounds3D intersection(IntBounds3D bounds)
bounds - the Bounds object used for intersection.public IntBounds3D union(IntBounds3D bounds)
bounds - the Bounds object used for computing union.public int getWidth()
public int getHeight()
public int getDepth()
public boolean isValid()
public int getXMin()
public int getXMax()
public int getYMin()
public int getYMax()
public int getZMin()
public int getZMax()
Copyright © 2014–2024 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.