public class SuperimposedImage
extends java.lang.Object
A class that supports matching the geometry of a superimposed image and an underlying images, and creating BufferedImages suitable for drawing on an underlying image.
SingleImagePanel
Modifier and Type | Class and Description |
---|---|
class |
SuperimposedImage.AppliedToUnderlyingImage
A class that supports matching the geometry of a superimposed image
and a specified underlying image, and creating a BufferedImage suitable for
drawing on that underlying image.
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
cieLabScaled |
static double |
DEFAULT_CLOSEST_SLICE_TOLERANCE_DISTANCE |
protected GeometryOfVolume |
superimposedGeometry |
protected SourceImage |
superimposedSourceImage |
Modifier | Constructor and Description |
---|---|
protected |
SuperimposedImage() |
|
SuperimposedImage(SourceImage superimposedSourceImage,
GeometryOfVolume superimposedGeometry) |
|
SuperimposedImage(SourceImage superimposedSourceImage,
GeometryOfVolume superimposedGeometry,
int[] cieLabScaled) |
Modifier and Type | Method and Description |
---|---|
SuperimposedImage.AppliedToUnderlyingImage |
getAppliedToUnderlyingImage(GeometryOfVolume underlyingGeometry,
int underlyingFrame) |
SuperimposedImage.AppliedToUnderlyingImage |
getAppliedToUnderlyingImage(GeometryOfVolume underlyingGeometry,
int underlyingFrame,
double toleranceDistance) |
int[] |
getIntegerScaledCIELabPCS() |
static boolean |
isSliceCloseEnoughToSuperimpose(GeometryOfSlice geometryOfSuperimposedSlice,
GeometryOfSlice geometryOfUnderlyingSlice)
Is the superimposed slice close enough to the underlying slice to superimpose?
|
static boolean |
isSliceCloseEnoughToSuperimpose(GeometryOfSlice geometryOfSuperimposedSlice,
GeometryOfSlice geometryOfUnderlyingSlice,
double toleranceDistance)
Is the superimposed slice close enough to the underlying slice to superimpose?
|
public static final double DEFAULT_CLOSEST_SLICE_TOLERANCE_DISTANCE
protected SourceImage superimposedSourceImage
protected GeometryOfVolume superimposedGeometry
protected int[] cieLabScaled
protected SuperimposedImage()
public SuperimposedImage(SourceImage superimposedSourceImage, GeometryOfVolume superimposedGeometry, int[] cieLabScaled)
superimposedSourceImage
- superimposedGeometry
- cieLabScaled
- public SuperimposedImage(SourceImage superimposedSourceImage, GeometryOfVolume superimposedGeometry)
superimposedSourceImage
- superimposedGeometry
- public static boolean isSliceCloseEnoughToSuperimpose(GeometryOfSlice geometryOfSuperimposedSlice, GeometryOfSlice geometryOfUnderlyingSlice, double toleranceDistance)
Is the superimposed slice close enough to the underlying slice to superimpose?
geometryOfSuperimposedSlice
- geometryOfUnderlyingSlice
- toleranceDistance
- difference in distance along normal to orientation for underlying and superimposed frames to be close enough to superimpose, in mmpublic static boolean isSliceCloseEnoughToSuperimpose(GeometryOfSlice geometryOfSuperimposedSlice, GeometryOfSlice geometryOfUnderlyingSlice)
Is the superimposed slice close enough to the underlying slice to superimpose?
Assumes a default tolerance factor that is close to zero but allows for floating point rounding error.
geometryOfSuperimposedSlice
- geometryOfUnderlyingSlice
- public SuperimposedImage.AppliedToUnderlyingImage getAppliedToUnderlyingImage(GeometryOfVolume underlyingGeometry, int underlyingFrame, double toleranceDistance)
underlyingGeometry
- underlyingFrame
- numbered from 0toleranceDistance
- difference in distance along normal to orientation for underlying and superimposed frames to be close enough to superimpose, in mmpublic SuperimposedImage.AppliedToUnderlyingImage getAppliedToUnderlyingImage(GeometryOfVolume underlyingGeometry, int underlyingFrame)
underlyingGeometry
- underlyingFrame
- numbered from 0public int[] getIntegerScaledCIELabPCS()