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
ConstructorDescriptionGImageGrayDistorted
(PixelTransform<Point2D_F32> transform, InterpolatePixelS<T> interpolate) -
Method Summary
Modifier and TypeMethodDescriptionget
(int x, int y) float
getF
(int index) int
getImage()
int
getWidth()
boolean
void
set
(int index, float value) Sets pixel based on pixel value in data arrayvoid
Set's pixel value using number.double
unsafe_getD
(int x, int y) get which returns a double, has no bounds checking.float
unsafe_getF
(int x, int y) void
-
Constructor Details
-
GImageGrayDistorted
-
-
Method Details
-
wrap
- Specified by:
wrap
in interfaceGImageGray
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceGImageGray
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceGImageGray
-
isFloatingPoint
public boolean isFloatingPoint()- Specified by:
isFloatingPoint
in interfaceGImageGray
-
get
- Specified by:
get
in interfaceGImageGray
-
set
Description copied from interface:GImageGray
Set's pixel value using number. If native type of 'num' and image are the same then there is no loss in precision.- Specified by:
set
in 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:GImageGray
get 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_getD
in interfaceGImageGray
-
unsafe_getF
public float unsafe_getF(int x, int y) - Specified by:
unsafe_getF
in interfaceGImageGray
-
set
public void set(int index, float value) Description copied from interface:GImageGray
Sets pixel based on pixel value in data array- Specified by:
set
in interfaceGImageGray
-
getF
public float getF(int index) - Specified by:
getF
in interfaceGImageGray
-
getImage
- Specified by:
getImage
in interfaceGImageGray
-
getImageType
- Specified by:
getImageType
in interfaceGImageGray
-