public class ImplImageDistort_PL<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>> extends java.lang.Object implements ImageDistort<boofcv.struct.image.Planar<Input>,boofcv.struct.image.Planar<Output>>
ImageDistort for Planar images.| Constructor and Description |
|---|
ImplImageDistort_PL(ImageDistort<Input,Output> layerDistort) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(boofcv.struct.image.Planar<Input> srcImg,
boofcv.struct.image.Planar<Output> dstImg)
Applies the transform to the entire destination image.
|
void |
apply(boofcv.struct.image.Planar<Input> srcImg,
boofcv.struct.image.Planar<Output> dstImg,
boofcv.struct.image.GrayU8 mask)
Applies the transform, but marks pixels in the mask as 1 = inside, 0 = outside.
|
void |
apply(boofcv.struct.image.Planar<Input> srcImg,
boofcv.struct.image.Planar<Output> dstImg,
int dstX0,
int dstY0,
int dstX1,
int dstY1)
Applies the transform to only the specified region inside the destination image.
|
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> |
getModel()
Returns the distortion model.
|
boolean |
getRenderAll()
Returns the render all flag
|
void |
setModel(boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc)
Specifies how pixel coordinates are transformed from the destination
to source images.
|
void |
setRenderAll(boolean renderAll)
Specifies if the entire output image should be rendered, even if mapping to the source image is outside
the source image.
|
public ImplImageDistort_PL(ImageDistort<Input,Output> layerDistort)
public void setModel(boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc)
ImageDistortpublic void apply(boofcv.struct.image.Planar<Input> srcImg, boofcv.struct.image.Planar<Output> dstImg)
ImageDistortpublic void apply(boofcv.struct.image.Planar<Input> srcImg, boofcv.struct.image.Planar<Output> dstImg, boofcv.struct.image.GrayU8 mask)
ImageDistortapply in interface ImageDistort<boofcv.struct.image.Planar<Input extends boofcv.struct.image.ImageGray<Input>>,boofcv.struct.image.Planar<Output extends boofcv.struct.image.ImageGray<Output>>>srcImg - Input image. Not modified.dstImg - Output image. Modified.mask - Mask. Modified.public void apply(boofcv.struct.image.Planar<Input> srcImg, boofcv.struct.image.Planar<Output> dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
ImageDistortapply in interface ImageDistort<boofcv.struct.image.Planar<Input extends boofcv.struct.image.ImageGray<Input>>,boofcv.struct.image.Planar<Output extends boofcv.struct.image.ImageGray<Output>>>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.public void setRenderAll(boolean renderAll)
ImageDistortsetRenderAll in interface ImageDistort<boofcv.struct.image.Planar<Input extends boofcv.struct.image.ImageGray<Input>>,boofcv.struct.image.Planar<Output extends boofcv.struct.image.ImageGray<Output>>>renderAll - true to render all pixels or false only ones inside the source imagepublic boolean getRenderAll()
ImageDistortgetRenderAll in interface ImageDistort<boofcv.struct.image.Planar<Input extends boofcv.struct.image.ImageGray<Input>>,boofcv.struct.image.Planar<Output extends boofcv.struct.image.ImageGray<Output>>>public boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> getModel()
ImageDistort