boofcv.struct.image
Class GrayS64
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageGray<GrayS64>
-
- boofcv.struct.image.GrayS64
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class GrayS64 extends ImageGray<GrayS64>
Image with a pixel type of signed 64-bit integer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description long[]data
-
Constructor Summary
Constructors Constructor and Description GrayS64()Creates an image with no data declared and the width/height set to zero.GrayS64(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 GrayS64_createNew(int imgWidth, int imgHeight)Returns a new image.longget(int x, int y)Returns the value of the specified pixel.long[]getData()ImageDataTypegetDataType()Returns image type informationvoidset(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.ImageBase
clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
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 Detail
-
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)
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageGrayReturns image type information- Specified by:
getDataTypein classImageGray<GrayS64>- Returns:
- The type of image.
-
_createNew
public GrayS64 _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<GrayS64>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
getData
public long[] getData()
-
setData
public void setData(long[] data)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG