public abstract class ImagesToImageOperation extends Operation
Modifier and Type | Field | Description |
---|---|---|
private Vector |
inputImages |
|
private PixelImage |
outputImage |
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addInputImage(PixelImage in) |
Adds an image to the end of the internal list of
input images.
|
void |
ensureImagesHaveSameResolution() |
Checks if all images have the same resolution as given by their
getWidth and getHeight methods.
|
void |
ensureOutputImageResolution(int width,
int height) |
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.
|
PixelImage |
getInputImage(int index) |
Returns the input image stored in this object.
|
int |
getNumInputImages() |
Return the number of input images currently stored in this operation.
|
PixelImage |
getOutputImage() |
Returns the output image stored in this object.
|
void |
setOutputImage(PixelImage out) |
Sets the output image stored in this object to the argument.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, addProgressListeners, getAbort, process, removeProgressListener, setAbort, setProgress, setProgress
private Vector inputImages
private PixelImage outputImage
public ImagesToImageOperation()
public ImagesToImageOperation(Vector in, PixelImage out)
public void addInputImage(PixelImage in)
public void ensureImagesHaveSameResolution() throws WrongParameterException
WrongParameterException
- if input and output images exist and their
resolutions differpublic void ensureOutputImageResolution(int width, int height) throws WrongParameterException
width
- the horizontal pixel resolution that the output image must haveheight
- the vertical pixel resolution that the output image must haveWrongParameterException
- if the resolutions differpublic PixelImage getInputImage(int index)
null
public int getNumInputImages()
public PixelImage getOutputImage()
null
public void setOutputImage(PixelImage out)
null
.out
- the new output image of this object