Class ColourVolumeInterpolator

java.lang.Object
com.xinapse.image.ColourVolumeInterpolator

public class ColourVolumeInterpolator extends Object
An interpolator for a 3- (or fewer) dimensional array of pixels in a Colour image. Supported pixel data types are:

The ColourVolumeInterpolator interpolates to produce a set of interpolated colour values at an arbitrary set of locations.

Supported interpolation types are:

The origin (x=0, y=0, z=0) is assumed to be at the centre of the block of pixels, such that x values within the block go from x=-FoVx/2 to x=+FoVx/2 where FoVx is the field of view in the x-direction (with similar specification for y and z). The array of pixels to be interpolated is inset within the block such that there is half a pixel distance between the edges of the field of view and the first and last samples (i.e., FoVx = pixelXSize * number of columns, etc.).

Supplied coordinates outside the field of view will yield the "missing colour value" pixel colour. This missing colour value defaults to black, but can be set to any other Color. The result of any interpolation is the same as would result when iterpolating within an infinite array of pixel samples, where the central portion of samples is that supplied to form the ColourVolumeInterpolator, and any pixel samples outside the central portion have a colour equal to the "missing colour value".