boofcv.core.image
Class GImageGrayDistorted<T extends ImageGray>
- java.lang.Object
-
- boofcv.core.image.GImageGrayDistorted<T>
-
- All Implemented Interfaces:
- GImageGray
public class GImageGrayDistorted<T extends ImageGray> extends java.lang.Object implements GImageGray
-
-
Constructor Summary
Constructors Constructor and Description GImageGrayDistorted(PixelTransform_F32 transform, InterpolatePixelS<T> interpolate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Numberget(int x, int y)floatgetF(int index)intgetHeight()ImageGraygetImage()java.lang.ClassgetImageType()intgetWidth()booleanisFloatingPoint()voidset(int index, float value)Sets pixel based on pixel value in data arrayvoidset(int x, int y, java.lang.Number num)Set'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)voidwrap(ImageGray image)
-
-
-
Constructor Detail
-
GImageGrayDistorted
public GImageGrayDistorted(PixelTransform_F32 transform, InterpolatePixelS<T> interpolate)
-
-
Method Detail
-
wrap
public void wrap(ImageGray image)
- 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
public java.lang.Number get(int x, int y)- Specified by:
getin interfaceGImageGray
-
set
public void set(int x, int y, java.lang.Number num)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
public ImageGray getImage()
- Specified by:
getImagein interfaceGImageGray
-
getImageType
public java.lang.Class getImageType()
- Specified by:
getImageTypein interfaceGImageGray
-
-
DataMelt 3.0 © DataMelt by jWork.ORG