Package boofcv.struct.image
Class GrayU8
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
Image with a pixel type of unsigned 8-bit integer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.struct.image.GrayI
GrayI.EachPixel
Nested classes/interfaces inherited from class boofcv.struct.image.ImageBase
ImageBase.PixelXY
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateNew
(int imgWidth, int imgHeight) Returns a new image.Returns image type informationint
unsafe_get
(int x, int y) Get function which does not perform bounds checking.Methods inherited from class boofcv.struct.image.GrayI8
_getData, _setData, copyCol, getData, set, setData, unsafe_set
Methods inherited from class boofcv.struct.image.GrayI
forEachPixel, get, print, printBinary, printNotZero
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, isSameShape, isSubimage, reshapeTo, subimage, totalPixels
-
Constructor Details
-
GrayU8
public GrayU8(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.
-
GrayU8
public GrayU8() -
GrayU8
public GrayU8(byte[][] input)
-
-
Method Details
-
unsafe_get
public int unsafe_get(int x, int y) Description copied from class:GrayI
Get function which does not perform bounds checking.- Specified by:
unsafe_get
in classGrayI<GrayU8>
- Parameters:
x
- pixel coordinate.y
- pixel coordinate.- Returns:
- an intensity value.
-
getDataType
Description copied from class:ImageGray
Returns image type information- Overrides:
getDataType
in classGrayI8<GrayU8>
- Returns:
- The type of image.
-
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.
-