- 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,Output extends ImageGray> extends java.lang.Object implements ImageDistort<Planar<Input>,Planar<Output>>
Implementation ofImageDistortforPlanarimages.
-
-
Constructor Summary
Constructors Constructor and Description ImplImageDistort_PL(ImageDistort<Input,Output> layerDistort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapply(Planar<Input> srcImg, Planar<Output> dstImg)Applies the transform to the entire destination image.voidapply(Planar<Input> srcImg, Planar<Output> dstImg, int dstX0, int dstY0, int dstX1, int dstY1)Applies the transform to only the specified region inside the destination image.booleangetRenderAll()Returns the render all flagvoidsetModel(PixelTransform_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 Detail
-
ImplImageDistort_PL
public ImplImageDistort_PL(ImageDistort<Input,Output> layerDistort)
-
-
Method Detail
-
setModel
public void setModel(PixelTransform_F32 dstToSrc)
Description copied from interface:ImageDistortSpecifies how pixel coordinates are transformed from the destination to source images.
-
apply
public void apply(Planar<Input> srcImg, Planar<Output> dstImg)
Description copied from interface:ImageDistortApplies the transform to the entire destination image.
-
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<Planar<Input extends ImageGray>,Planar<Output extends ImageGray>>- Parameters:
srcImg- Input image. Not modified.dstImg- Output image. Modified.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<Planar<Input extends ImageGray>,Planar<Output extends ImageGray>>- Parameters:
renderAll- true to render all pixels or false only ones inside the source image
-
getRenderAll
public boolean getRenderAll()
Description copied from interface:ImageDistortReturns the render all flag- Specified by:
getRenderAllin interfaceImageDistort<Planar<Input extends ImageGray>,Planar<Output extends ImageGray>>- Returns:
- render all flag
-
-
DataMelt 3.0 © DataMelt by jWork.ORG