Package boofcv.struct.image
Class GrayF64
- All Implemented Interfaces:
Serializable,Cloneable
Image with a pixel type of 64-bit float.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object_getData()Returns the data array the image is stored in.voidSets the image's internal data array.voidCopies the column into the array.createNew(int imgWidth, int imgHeight) Returns a new image.voidforEachPixel(GrayF64.EachPixel function) Passes in the coordinate and value of each pixel in the image.doubleget(int x, int y) Returns the value of the specified pixel.double[]getData()Returns image type informationvoidprint()Prints the image to standard outvoidvoidprintInt()voidset(int x, int y, double value) Sets the value of the specified pixel.voidsetData(double[] data) doubleunsafe_get(int x, int y) voidunsafe_set(int x, int y, double value) Methods inherited from class boofcv.struct.image.ImageGray
copyRow, create, createSameShape, initialize, reshape, reshape, setTo, subimageMethods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, forEachXY, getImageType, getIndex, indexToPixelX, indexToPixelY, isInBounds, isSameShape, 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
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:ImageGrayPrints the image to standard out -
print
-
printInt
public void printInt() -
_getData
Description copied from class:ImageGrayReturns the data array the image is stored in. -
_setData
Description copied from class:ImageGraySets the image's internal data array. -
createNew
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. -
copyCol
Description copied from class:ImageBaseCopies the column into the array. -
getDataType
Description copied from class:ImageGrayReturns image type information- Overrides:
getDataTypein classGrayF<GrayF64>- Returns:
- The type of image.
-
getData
public double[] getData() -
setData
public void setData(double[] data)
-