Package boofcv.alg.distort.impl
Class ImplImageDistort_PL<Input extends ImageGray<Input>,Output extends ImageGray<Output>>
java.lang.Object
boofcv.alg.distort.impl.ImplImageDistort_PL<Input,Output>
- All Implemented Interfaces:
ImageDistort<Planar<Input>,Planar<Output>>
public class ImplImageDistort_PL<Input extends ImageGray<Input>,Output extends ImageGray<Output>>
extends Object
implements ImageDistort<Planar<Input>,Planar<Output>>
Implementation of
ImageDistort for Planar images.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the transform to the entire destination image.voidApplies the transform to only the specified region inside the destination image.voidApplies the transform, but marks pixels in the mask as 1 = inside, 0 = outside.getModel()Returns the distortion model.booleanReturns the render all flagvoidsetModel(PixelTransform<Point2D_F32> dstToSrc) Specifies how pixel coordinates are transformed from the destination to source images.voidsetRenderAll(boolean renderAll) Specifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.
-
Constructor Details
-
ImplImageDistort_PL
-
-
Method Details
-
setModel
Description copied from interface:ImageDistortSpecifies how pixel coordinates are transformed from the destination to source images. -
apply
Description copied from interface:ImageDistortApplies the transform to the entire destination image. -
apply
Description copied from interface:ImageDistortApplies the transform, but marks pixels in the mask as 1 = inside, 0 = outside. Where inside pixels are pixels in the dst image with an equivalent pixel in the src image's bounds -
apply
public void apply(Planar<Input> srcImg, Planar<Output> dstImg, int dstX0, int dstY0, int dstX1, int dstY1) Description copied from interface:ImageDistortApplies the transform to only the specified region inside the destination image.- Specified by:
applyin interfaceImageDistort<Input extends ImageGray<Input>,Output extends ImageGray<Output>> - Parameters:
srcImg- (Input) Original image.dstImg- (Output) Distorted image.dstX0- Left most crop boundary. Inclusive.dstY0- Top most crop boundary. Inclusive.dstX1- Right most crop boundary. Exclusive.dstY1- Bottom most crop boundary. Exclusive.
-
setRenderAll
public void setRenderAll(boolean renderAll) Description copied from interface:ImageDistortSpecifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.- Specified by:
setRenderAllin interfaceImageDistort<Input extends ImageGray<Input>,Output extends ImageGray<Output>> - Parameters:
renderAll- true to render all pixels. If false then only pixels inside the source image
-
getRenderAll
public boolean getRenderAll()Description copied from interface:ImageDistortReturns the render all flag- Specified by:
getRenderAllin interfaceImageDistort<Input extends ImageGray<Input>,Output extends ImageGray<Output>> - Returns:
- render all flag
-
getModel
Description copied from interface:ImageDistortReturns the distortion model.
-