Package boofcv.struct.image
Class GrayS32
- All Implemented Interfaces:
Serializable
,Cloneable
Gray scale image with a pixel type of signed 32-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 TypeMethodDescriptionprotected Object
_getData()
Returns the data array the image is stored in.void
Sets the image's internal data array.void
Copies the column into the array.createNew
(int imgWidth, int imgHeight) Returns a new image.int[]
getData()
Returns image type informationvoid
set
(int x, int y, int value) Sets the value of the specified pixel.void
setData
(int[] data) int
unsafe_get
(int x, int y) Get function which does not perform bounds checking.void
unsafe_set
(int x, int y, int value) Set function which does not perform bounds checking.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
-
Field Details
-
data
public int[] data
-
-
Constructor Details
-
GrayS32
public GrayS32(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.
-
GrayS32
public GrayS32()Creates an image with no data declared and the width/height set to zero.
-
-
Method Details
-
unsafe_set
public void unsafe_set(int x, int y, int value) Description copied from class:GrayI
Set function which does not perform bounds checking.- Specified by:
unsafe_set
in classGrayI<GrayS32>
- Parameters:
x
- pixel coordinate.y
- pixel coordinate.value
- The pixel's new value.
-
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<GrayS32>
- Parameters:
x
- pixel coordinate.y
- pixel coordinate.- Returns:
- an intensity value.
-
set
public void set(int x, int y, int value) Sets the value of the specified pixel. -
getDataType
Description copied from class:ImageGray
Returns image type information- Overrides:
getDataType
in classGrayI<GrayS32>
- Returns:
- The type of image.
-
_getData
Description copied from class:ImageGray
Returns the data array the image is stored in. -
_setData
Description copied from class:ImageGray
Sets the image's internal data array. -
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. -
copyCol
Description copied from class:ImageBase
Copies the column into the array. -
getData
public int[] getData() -
setData
public void setData(int[] data)
-