Package boofcv.struct.image
Class GrayF64
- All Implemented Interfaces:
Serializable
,Cloneable
public class GrayF64 extends GrayF<GrayF64>
Image with a pixel type of 64-bit float.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY
-
Field Summary
Fields Modifier and Type Field Description double[]
data
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected Object
_getData()
Returns the data array the image is stored in.void
_setData(Object data)
Sets the image's internal data array.void
copyCol(int col, int row0, int row1, int offset, Object array)
Copies the column into the array.GrayF64
createNew(int imgWidth, int imgHeight)
Returns a new image.void
forEachPixel(boofcv.struct.image.GrayF64.EachPixel function)
Passes in the coordinate and value of each pixel in the image.double
get(int x, int y)
Returns the value of the specified pixel.double[]
getData()
ImageDataType
getDataType()
Returns image type informationvoid
print()
Prints the image to standard outvoid
print(String format)
void
printInt()
void
set(int x, int y, double value)
Sets the value of the specified pixel.void
setData(double[] data)
double
unsafe_get(int x, int y)
void
unsafe_set(int x, int y, double value)
Methods inherited from class boofcv.struct.image.ImageGray
copyRow, create, createSameShape, initialize, reshape, reshape, setTo, subimage
Methods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, forEachXY, getImageType, getIndex, indexToPixelX, indexToPixelY, isInBounds, isSubimage, reshapeTo, subimage, totalPixels
-
Field Details
-
data
public double[] data
-
-
Constructor Details
-
GrayF64
public GrayF64(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.
-
GrayF64
public GrayF64()Creates an image with no data declared and the width/height set to zero.
-
-
Method Details
-
get
public double 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 double unsafe_get(int x, int y) -
set
public void set(int x, int y, double 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, double value) -
forEachPixel
public void forEachPixel(boofcv.struct.image.GrayF64.EachPixel function)Passes in the coordinate and value of each pixel in the image.- Parameters:
function
- (Input) The function
-
print
public void print()Description copied from class:ImageGray
Prints the image to standard out -
print
-
printInt
public void printInt() -
_getData
Description copied from class:ImageGray
Returns the data array the image is stored in. -
_setData
Description copied from class:ImageGray
Sets the image's internal data array. -
createNew
Description copied from class:ImageBase
Returns 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. -
copyCol
Description copied from class:ImageBase
Copies the column into the array. -
getDataType
Description copied from class:ImageGray
Returns image type information- Overrides:
getDataType
in classGrayF<GrayF64>
- Returns:
- The type of image.
-
getData
public double[] getData() -
setData
public void setData(double[] data)
-