boofcv.struct.image
Class GrayS16
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageGray<T>
-
- boofcv.struct.image.GrayI<T>
-
- boofcv.struct.image.GrayI16<GrayS16>
-
- boofcv.struct.image.GrayS16
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class GrayS16 extends GrayI16<GrayS16>
Image with a pixel type of signed 16-bit integer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GrayS16()Creates an image with no data declared and the width/height set to zero.GrayS16(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 GrayS16_createNew(int imgWidth, int imgHeight)Returns a new image.ImageDataTypegetDataType()Returns image type informationintunsafe_get(int x, int y)Get function which does not perform bounds checking.-
Methods inherited from class boofcv.struct.image.GrayI16
getData, set, setData, unsafe_set
-
Methods inherited from class boofcv.struct.image.GrayI
get, print, printBinary, printNotZero
-
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
-
GrayS16
public GrayS16(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.
-
GrayS16
public GrayS16()
Creates an image with no data declared and the width/height set to zero.
-
-
Method Detail
-
unsafe_get
public int unsafe_get(int x, int y)Description copied from class:GrayIGet function which does not perform bounds checking.- Specified by:
unsafe_getin classGrayI<GrayS16>- Parameters:
x- pixel coordinate.y- pixel coordinate.- Returns:
- an intensity value.
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageGrayReturns image type information- Overrides:
getDataTypein classGrayI16<GrayS16>- Returns:
- The type of image.
-
_createNew
public GrayS16 _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<GrayS16>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG