- All Superinterfaces:
- All Known Implementing Classes:
This is intended to apply simple transforms to an image (e.g. color transforms, channel extraction, filtering, normalization), which may impact the number and type of image channels - but not other aspects of the image, with the exception of removing any padding.
Operations may be chained
Method SummaryModifier and TypeMethodDescriptionApply operation to the image.Get appropriate channels to reflect the output of this transform.
default PixelTypeGet the output pixel type.
default PaddingGet the padding requested for this operation.
getURIs()Default implementation returns an empty list; classes should override this if necessary.
default booleanDefault implementation makes no changes; classes should override this if necessary.
applyApply operation to the image. The input may be modified (and the operation applied in-place), therefore should be duplicated if a copy is required to be kept.
Note that any non-empty padding will be removed, potentially giving an output image smaller than the input. If this is not desirable use
getPaddingdefault Padding getPadding()Get the padding requested for this operation. The default is to return
Subclasses that perform neighborhood operations should override this. If the padding is non-empty, it will be removed when
apply(Mat)is called - and so the
Matthat is output will be smaller than the
Matthat was input.
- the padding requested by this operation
getChannelsGet appropriate channels to reflect the output of this transform. The default is to return the input list unchanged.
Classes that change the meaning or number of channels should override this. In particular, the number of channels in the output list should match the number of channels output by this transformer, given the input channels.
getOutputTypeGet the output pixel type. The default is to return the pixel type unchanged.
inputType- the input pixel type
- the output pixel type
getURIsDefault implementation returns an empty list; classes should override this if necessary.
updateURIsDefault implementation makes no changes; classes should override this if necessary.