Maven module :un.api : api-image :
Class : un.api.image.process.AbstractPairPreservingOperator
Extends/Implements : un.api.task.AbstractTask
Subclasses : -

Image operator which preserve the image size and models.
This ensure both input images have the same dimensions.
author  Johann Sorel


Variables : extent, inputImage1, inputRawModel1, inputTuples1, inputColorModel1, inputImage2, inputRawModel2, inputTuples2, inputColorModel2, outputImage, outputRawModel, outputTuples, outputColorModel, outNbSample, outSampleType
Functions : AbstractPairPreservingOperator, execute, getOutputSampleModel, getOutputColorModel, adjustInOutSamples


protected Extent.Long extent

protected Image inputImage1

protected RawModel inputRawModel1

protected TupleBuffer inputTuples1

protected ColorModel inputColorModel1

protected Image inputImage2

protected RawModel inputRawModel2

protected TupleBuffer inputTuples2

protected ColorModel inputColorModel2

protected Image outputImage

protected RawModel outputRawModel

protected TupleBuffer outputTuples

protected ColorModel outputColorModel

protected int outNbSample

protected int outSampleType


public void AbstractPairPreservingOperator (AbstractImageTaskDescriptor descriptor)

public Parameters execute ()


return  same image sample model as first image
protected RawModel getOutputSampleModel ()


return  same image color model as first image
protected ColorModel getOutputColorModel ()

protected void adjustInOutSamples (double[] inSamples, Object outSamples)