| ca.forklabs.media.jai.opimage.AbstractCRIF ca.forklabs.media.jai.opimage.AutoRescaleCRIF
AutoRescaleCRIF | public class AutoRescaleCRIF extends AbstractCRIF (Code) | | Class
AutoRescaleCRIF is a
ContextualRenderedImageFactory supporting the autorescale operation in the rendered and renderable
image layers.
author: Daniel Léonard version: $Revision: 1.1 $ |
Method Summary | |
public RenderedImage | create(ParameterBlock pb, RenderingHints hints) Enhance the image. | protected BinaryFunction<RenderedImage, RenderedImage, RenderingHints> | getAddConstFunction(double[] values) Gets the function adding the values to the image.
Parameters: values - the values to be added. | protected UnaryFunction<RenderedImage, RenderedImage> | getAutoRescaleFunction(ParameterBlock pb, RenderingHints hints) Gets the function doing the auto-scaling.
Parameters: pb - the parameter blocks. Parameters: hints - the rendering hints. | protected double[] | getLowerBounds(ParameterBlock pb) Gets the lower bounds from the parameter block.
Parameters: pb - the parameter block. | protected BinaryFunction<RenderedImage, RenderedImage, RenderingHints> | getRescaleFunction(double[] lower_bounds, double[] upper_bounds) Gets the function rescaling the image values between
[0, upper_bounds - lower_bounds] .
Parameters: lower_bounds - the lower bounds. Parameters: upper_bounds - the upper bounds. | protected double[] | getUpperBounds(ParameterBlock pb) Gets the upper bounds from the parameter block.
Parameters: pb - the parameter block. |
AutoRescaleCRIF | public AutoRescaleCRIF()(Code) | | Constructor.
|
create | public RenderedImage create(ParameterBlock pb, RenderingHints hints)(Code) | | Enhance the image.
Parameters: pb - the parameter block. Parameters: hints - optional rendering hints. |
getAddConstFunction | protected BinaryFunction<RenderedImage, RenderedImage, RenderingHints> getAddConstFunction(double[] values)(Code) | | Gets the function adding the values to the image.
Parameters: values - the values to be added. the function. |
getAutoRescaleFunction | protected UnaryFunction<RenderedImage, RenderedImage> getAutoRescaleFunction(ParameterBlock pb, RenderingHints hints)(Code) | | Gets the function doing the auto-scaling.
Parameters: pb - the parameter blocks. Parameters: hints - the rendering hints. the function. |
getLowerBounds | protected double[] getLowerBounds(ParameterBlock pb)(Code) | | Gets the lower bounds from the parameter block.
Parameters: pb - the parameter block. the lower bounds. |
getRescaleFunction | protected BinaryFunction<RenderedImage, RenderedImage, RenderingHints> getRescaleFunction(double[] lower_bounds, double[] upper_bounds)(Code) | | Gets the function rescaling the image values between
[0, upper_bounds - lower_bounds] .
Parameters: lower_bounds - the lower bounds. Parameters: upper_bounds - the upper bounds. the function |
getUpperBounds | protected double[] getUpperBounds(ParameterBlock pb)(Code) | | Gets the upper bounds from the parameter block.
Parameters: pb - the parameter block. the upper bounds. |
|
|