Package boofcv.alg.distort
Class ImageDistortBasic_SB<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>>
- java.lang.Object
-
- boofcv.alg.distort.ImageDistortBasic<Input,Output,InterpolatePixelS<Input>>
-
- boofcv.alg.distort.ImageDistortBasic_SB<Input,Output>
-
- All Implemented Interfaces:
ImageDistort<Input,Output>
public class ImageDistortBasic_SB<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>> extends ImageDistortBasic<Input,Output,InterpolatePixelS<Input>>
Most basic implementation ofImageDistortforImageGray. Computes the distortion from the dst to src image for each pixel. The dst pixel value is then set to the interpolated value of the src image.
-
-
Constructor Summary
Constructors Constructor Description ImageDistortBasic_SB(AssignPixelValue_SB<Output> assigner, InterpolatePixelS<Input> interp)Specifies configuration parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyAll()protected voidapplyAll(boofcv.struct.image.GrayU8 mask)protected voidapplyOnlyInside()protected voidapplyOnlyInside(boofcv.struct.image.GrayU8 mask)protected voidinit(Input srcImg, Output dstImg)-
Methods inherited from class boofcv.alg.distort.ImageDistortBasic
apply, apply, apply, getModel, getRenderAll, setModel, setRenderAll
-
-
-
-
Field Detail
-
assigner
protected AssignPixelValue_SB<Output extends boofcv.struct.image.ImageGray<Output>> assigner
-
-
Constructor Detail
-
ImageDistortBasic_SB
public ImageDistortBasic_SB(AssignPixelValue_SB<Output> assigner, InterpolatePixelS<Input> interp)
Specifies configuration parameters- Parameters:
interp- Interpolation algorithm
-
-
Method Detail
-
init
protected void init(Input srcImg, Output dstImg)
- Overrides:
initin classImageDistortBasic<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>,InterpolatePixelS<Input extends boofcv.struct.image.ImageGray<Input>>>
-
applyAll
protected void applyAll()
- Specified by:
applyAllin classImageDistortBasic<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>,InterpolatePixelS<Input extends boofcv.struct.image.ImageGray<Input>>>
-
applyAll
protected void applyAll(boofcv.struct.image.GrayU8 mask)
- Specified by:
applyAllin classImageDistortBasic<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>,InterpolatePixelS<Input extends boofcv.struct.image.ImageGray<Input>>>
-
applyOnlyInside
protected void applyOnlyInside()
- Specified by:
applyOnlyInsidein classImageDistortBasic<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>,InterpolatePixelS<Input extends boofcv.struct.image.ImageGray<Input>>>
-
applyOnlyInside
protected void applyOnlyInside(boofcv.struct.image.GrayU8 mask)
- Specified by:
applyOnlyInsidein classImageDistortBasic<Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>,InterpolatePixelS<Input extends boofcv.struct.image.ImageGray<Input>>>
-
-