public class PromotionRGB48 extends ImageToImageOperation
RGB48Image
.
Promotion is a lossless operation that will only lead to an output image
that holds the same image in a way that demands more memory.
If you give an image implementing RGB24Image to this operation, a WrongParameterException will be thrown. This operation could also return the input image, but this might lead to the wrong impression that a copy of the input was produced which can be modified without changing the original.
Constructor and Description |
---|
PromotionRGB48() |
Modifier and Type | Method and Description |
---|---|
private void |
prepare(PixelImage in) |
void |
process()
This method does the actual work of the operation.
|
private void |
process(BilevelImage in,
RGB48Image out) |
private void |
process(Gray16Image in,
RGB48Image out) |
private void |
process(Gray8Image in,
RGB48Image out) |
private void |
process(Paletted8Image in,
RGB48Image out) |
private void |
process(RGB24Image in,
RGB48Image out) |
canInputAndOutputBeEqual, ensureImagesHaveSameResolution, ensureInputImageIsAvailable, ensureOutputImageResolution, getInputImage, getOutputImage, setCanInputAndOutputBeEqual, setInputImage, setOutputImage
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress
private void prepare(PixelImage in) throws MissingParameterException, WrongParameterException
private void process(BilevelImage in, RGB48Image out)
private void process(Paletted8Image in, RGB48Image out)
private void process(Gray16Image in, RGB48Image out)
private void process(Gray8Image in, RGB48Image out)
private void process(RGB24Image in, RGB48Image out)
public void process() throws MissingParameterException, WrongParameterException
Operation
process
in class Operation
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.)