Package boofcv.core.image
Class GImageGrayDistorted<T extends ImageGray<T>>
java.lang.Object
boofcv.core.image.GImageGrayDistorted<T>
- All Implemented Interfaces:
GImageGray
Implementation of
GImageGray that applies a PixelTransform then
interpolates to get the pixel's value.-
Constructor Summary
ConstructorsConstructorDescriptionGImageGrayDistorted(PixelTransform<Point2D_F32> transform, InterpolatePixelS<T> interpolate) -
Method Summary
Modifier and TypeMethodDescriptionget(int x, int y) floatgetF(int index) intgetImage()intgetWidth()booleanvoidset(int index, float value) Sets pixel based on pixel value in data arrayvoidSet's pixel value using number.doubleunsafe_getD(int x, int y) get which returns a double, has no bounds checking.floatunsafe_getF(int x, int y) void
-
Constructor Details
-
GImageGrayDistorted
-
-
Method Details
-
wrap
- Specified by:
wrapin interfaceGImageGray
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceGImageGray
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceGImageGray
-
isFloatingPoint
public boolean isFloatingPoint()- Specified by:
isFloatingPointin interfaceGImageGray
-
get
- Specified by:
getin interfaceGImageGray
-
set
Description copied from interface:GImageGraySet's pixel value using number. If native type of 'num' and image are the same then there is no loss in precision.- Specified by:
setin interfaceGImageGray- Parameters:
x- pixel coordinate x-valuey- pixel coordinate y-valuenum- Value of the pixel
-
unsafe_getD
public double unsafe_getD(int x, int y) Description copied from interface:GImageGrayget which returns a double, has no bounds checking. Still slow, but faster than the super generic get. Also doesn't create memory on each get- Specified by:
unsafe_getDin interfaceGImageGray
-
unsafe_getF
public float unsafe_getF(int x, int y) - Specified by:
unsafe_getFin interfaceGImageGray
-
set
public void set(int index, float value) Description copied from interface:GImageGraySets pixel based on pixel value in data array- Specified by:
setin interfaceGImageGray
-
getF
public float getF(int index) - Specified by:
getFin interfaceGImageGray
-
getImage
- Specified by:
getImagein interfaceGImageGray
-
getImageType
- Specified by:
getImageTypein interfaceGImageGray
-