boofcv.struct.image
Class GrayF32
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageGray<T>
-
- boofcv.struct.image.GrayF<GrayF32>
-
- boofcv.struct.image.GrayF32
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class GrayF32 extends GrayF<GrayF32>
Image with a pixel type of 32-bit float.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description float[]data
-
Constructor Summary
Constructors Constructor and Description GrayF32()Creates an image with no data declared and the width/height set to zero.GrayF32(int width, int height)Creates a new gray scale (single band/color) image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GrayF32_createNew(int imgWidth, int imgHeight)Returns a new image.floatget(int x, int y)Returns the value of the specified pixel.float[]getData()ImageDataTypegetDataType()Returns image type informationvoidprint()voidprint(java.lang.String format)voidprintInt()voidset(int x, int y, float value)Sets the value of the specified pixel.voidsetData(float[] data)floatunsafe_get(int x, int y)voidunsafe_set(int x, int y, float value)-
Methods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
GrayF32
public GrayF32(int width, int height)Creates a new gray scale (single band/color) image.- Parameters:
width- number of columns in the image.height- number of rows in the image.
-
GrayF32
public GrayF32()
Creates an image with no data declared and the width/height set to zero.
-
-
Method Detail
-
get
public float get(int x, int y)Returns the value of the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.- Returns:
- Pixel intensity value.
-
unsafe_get
public float unsafe_get(int x, int y)
-
set
public void set(int x, int y, float value)Sets the value of the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value.
-
unsafe_set
public void unsafe_set(int x, int y, float value)
-
print
public void print()
-
print
public void print(java.lang.String format)
-
printInt
public void printInt()
-
_createNew
public GrayF32 _createNew(int imgWidth, int imgHeight)
Description copied from class:ImageBaseReturns a new image. If either width or height are set to -1 then none of the class parameters set. Otherwise a new image is created with the specified dimensions which has all other parameters the same as the original matrix.- Specified by:
_createNewin classImageBase<GrayF32>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageGrayReturns image type information- Overrides:
getDataTypein classGrayF<GrayF32>- Returns:
- The type of image.
-
getData
public float[] getData()
-
setData
public void setData(float[] data)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG