Package net.sourceforge.jiu.geometry
Class Flip
java.lang.Object
net.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.ops.ImageToImageOperation
net.sourceforge.jiu.geometry.Flip
Flips images (top row becomes bottom row and vice versa, and so on).
Supported image types: IntegerImage.
Usage example:
Flip flip = new Flip(); flip.setInputImage(image); // image is some IntegerImage object flip.process(); PixelImage flippedImage = flip.getOutputImage();
- Author:
- Marco Schmidt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess()This method does the actual work of the operation.private voidprocess(IntegerImage in, IntegerImage out) Methods inherited from class net.sourceforge.jiu.ops.ImageToImageOperation
canInputAndOutputBeEqual, ensureImagesHaveSameResolution, ensureInputImageIsAvailable, ensureOutputImageResolution, getInputImage, getOutputImage, setCanInputAndOutputBeEqual, setInputImage, setOutputImageMethods inherited from class net.sourceforge.jiu.ops.Operation
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress
-
Constructor Details
-
Flip
public Flip()
-
-
Method Details
-
process
-
process
Description copied from class:OperationThis method does the actual work of the operation. It must be called after all parameters have been given to the operation object.- Overrides:
processin classOperation- Throws:
MissingParameterException- if any mandatory parameter was not given to the operationWrongParameterException- if at least one of the input parameters was not initialized appropriately (values out of the valid interval, etc.)
-