Package boofcv.struct.image
Class GrayS64
- All Implemented Interfaces:
Serializable,Cloneable
Image with a pixel type of signed 64-bit integer
- See Also:
-
Nested Class Summary
Nested 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(boofcv.struct.image.GrayS64.EachPixel function) Passes in the coordinate and value of each pixel in the image.longget(int x, int y) Returns the value of the specified pixel.long[]getData()Returns image type informationvoidprint()Prints the image to standard outvoidset(int x, int y, long value) Sets the value of the specified pixel.voidsetData(long[] data) longunsafe_get(int x, int y) voidunsafe_set(int x, int y, long 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 long[] data
-
-
Constructor Details
-
GrayS64
public GrayS64(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.
-
GrayS64
public GrayS64()Creates an image with no data declared and the width/height set to zero.
-
-
Method Details
-
get
public long 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 long unsafe_get(int x, int y) -
set
public void set(int x, int y, long 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, long value) -
forEachPixel
public void forEachPixel(boofcv.struct.image.GrayS64.EachPixel function) Passes in the coordinate and value of each pixel in the image.- Parameters:
function- (Input) The function
-
getDataType
Description copied from class:ImageGrayReturns image type information- Specified by:
getDataTypein classImageGray<GrayS64>- Returns:
- The type of image.
-
_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. -
getData
public long[] getData() -
setData
public void setData(long[] data) -
print
public void print()Description copied from class:ImageGrayPrints the image to standard out
-