Package boofcv.alg.distort
Class ImageDistortCache_SB_MT<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>>
- java.lang.Object
-
- boofcv.alg.distort.ImageDistortCache_SB<Input,Output>
-
- boofcv.alg.distort.ImageDistortCache_SB_MT<Input,Output>
-
- All Implemented Interfaces:
ImageDistort<Input,Output>
public class ImageDistortCache_SB_MT<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>> extends ImageDistortCache_SB<Input,Output>
Except for very simple functions, computing the per pixel distortion is an expensive operation. To overcome this problem the distortion is computed once and cached. Then when the image is distorted again the save results are simply recalled and not computed again.
-
-
Constructor Summary
Constructors Constructor Description ImageDistortCache_SB_MT(AssignPixelValue_SB<Output> assigner, InterpolatePixelS<Input> interp)Specifies configuration parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyOnlyInside()protected voidapplyOnlyInside(boofcv.struct.image.GrayU8 mask)protected voidinit(Input srcImg, Output dstImg)protected voidrenderAll()protected voidrenderAll(boofcv.struct.image.GrayU8 mask)-
Methods inherited from class boofcv.alg.distort.ImageDistortCache_SB
apply, apply, apply, getDstToSrc, getInterp, getMap, getModel, getRenderAll, setModel, setRenderAll
-
-
-
-
Constructor Detail
-
ImageDistortCache_SB_MT
public ImageDistortCache_SB_MT(AssignPixelValue_SB<Output> assigner, InterpolatePixelS<Input> interp)
Specifies configuration parameters- Parameters:
interp- Interpolation algorithm
-
-
Method Detail
-
renderAll
protected void renderAll()
-
renderAll
protected void renderAll(boofcv.struct.image.GrayU8 mask)
-
applyOnlyInside
protected void applyOnlyInside()
- Overrides:
applyOnlyInsidein classImageDistortCache_SB<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>>
-
applyOnlyInside
protected void applyOnlyInside(boofcv.struct.image.GrayU8 mask)
- Overrides:
applyOnlyInsidein classImageDistortCache_SB<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>>
-
-