Class PromotionGray16
java.lang.Object
net.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.ops.ImageToImageOperation
net.sourceforge.jiu.color.promotion.PromotionGray16
Converts BilevelImage and Gray8Image objects to Gray16Image 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.11.0
- Author:
- Marco Schmidt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
prepare
(PixelImage in) void
process()
This method does the actual work of the operation.private void
process
(BilevelImage in, Gray16Image out) private void
process
(Gray8Image in, Gray16Image 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
-
Constructor Details
-
PromotionGray16
public PromotionGray16()
-
-
Method Details
-
prepare
-
process
-
process
-
process
Description copied from class:Operation
This method does the actual work of the operation. It must be called after all parameters have been given to the operation object.- Overrides:
process
in 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.)
-