|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.ops.ImagesToImageOperation
An operation that takes several input images and produces one output image.
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class net.sourceforge.jiu.ops.Operation |
addProgressListener, addProgressListeners, getAbort, process, removeProgressListener, setAbort, setProgress, setProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImagesToImageOperation()
public ImagesToImageOperation(Vector in, PixelImage out)
Method Detail |
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 have
WrongParameterException
- 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
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |