Class PromotionGray8
- java.lang.Object
-
- net.sourceforge.jiu.ops.Operation
-
- net.sourceforge.jiu.ops.ImageToImageOperation
-
- net.sourceforge.jiu.color.promotion.PromotionGray8
-
public class PromotionGray8 extends ImageToImageOperation
Converts BilevelImage objects to Gray8Image objects. Promotion is a lossless operation that will lead to an output image that holds the same image in a way that demands more memory.- Since:
- 0.8.0
- Author:
- Marco Schmidt
-
-
Constructor Summary
Constructors Constructor Description PromotionGray8()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidprepare(PixelImage in)voidprocess()This method does the actual work of the operation.private voidprocess(BilevelImage in, Gray8Image out)-
Methods inherited from class net.sourceforge.jiu.ops.ImageToImageOperation
canInputAndOutputBeEqual, ensureImagesHaveSameResolution, ensureInputImageIsAvailable, ensureOutputImageResolution, getInputImage, getOutputImage, setCanInputAndOutputBeEqual, setInputImage, setOutputImage
-
Methods inherited from class net.sourceforge.jiu.ops.Operation
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress
-
-
-
-
Method Detail
-
prepare
private void prepare(PixelImage in) throws MissingParameterException, WrongParameterException
-
process
private void process(BilevelImage in, Gray8Image out)
-
process
public void process() throws MissingParameterException, WrongParameterExceptionDescription 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.)
-
-