net.sourceforge.jiu.ops
Class ImagesToImageOperation
public abstract class ImagesToImageOperation
An operation that takes several input images and produces one output image.
ImagesToImageOperation() - Constructs a new ImagesToImageOperation and initializes
input images and output image to null.
|
ImagesToImageOperation(Vector in, PixelImage out) - Constructs a new ImagesToImageOperation and initializes
input images and output image to the arguments.
|
inputImages
private Vector inputImages
ImagesToImageOperation
public ImagesToImageOperation()
Constructs a new ImagesToImageOperation and initializes
input images and output image to null.
ImagesToImageOperation
public ImagesToImageOperation(Vector in,
PixelImage out)
Constructs a new ImagesToImageOperation and initializes
input images and output image to the arguments.
addInputImage
public void addInputImage(PixelImage in)
Adds an image to the end of the internal list of
input images.
ensureImagesHaveSameResolution
public void ensureImagesHaveSameResolution()
throws WrongParameterException
Checks if all images have the same resolution as given by their
getWidth and getHeight methods.
This method will not complain if input and / or output images are not
available.
ensureOutputImageResolution
public void ensureOutputImageResolution(int width,
int height)
throws WrongParameterException
If an output image has been specified this method will compare
its resolution with the argument resolution and throw an exception if the
resolutions differ.
If no output image has been specified nothing happens.
width
- the horizontal pixel resolution that the output image must haveheight
- the vertical pixel resolution that the output image must have
getInputImage
public PixelImage getInputImage(int index)
Returns the input image stored in this object.
- input image, possibly
null
getNumInputImages
public int getNumInputImages()
Return the number of input images currently stored in this operation.
getOutputImage
public PixelImage getOutputImage()
Returns the output image stored in this object.
- output image, possibly
null
setOutputImage
public void setOutputImage(PixelImage out)
Sets the output image stored in this object to the argument.
Argument can be null
.
out
- the new output image of this object