boofcv.struct.image
Class InterleavedF32
- java.lang.Object
-
- boofcv.struct.image.ImageBase<T>
-
- boofcv.struct.image.ImageMultiBand<T>
-
- boofcv.struct.image.ImageInterleaved<InterleavedF32>
-
- boofcv.struct.image.InterleavedF32
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class InterleavedF32 extends ImageInterleaved<InterleavedF32>
ImageInterleavedfor data of type float.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description float[]data-
Fields inherited from class boofcv.struct.image.ImageInterleaved
numBands
-
-
Constructor Summary
Constructors Constructor and Description InterleavedF32()InterleavedF32(int width, int height, int numBands)Creates a new image with an arbitrary number of bands/colors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description InterleavedF32_createNew(int imgWidth, int imgHeight)Returns a new image.voidget_unsafe(int x, int y, float[] storage)float[]get(int x, int y, float[] storage)Returns the pixel's value for all the bands as an array.floatgetBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.ImageDataTypegetDataType()Returns image type informationvoidprint(java.lang.String format)voidset_unsafe(int x, int y, float[] value)voidset(int x, int y, float... value)Sets the pixel's value for all the bands using an array.voidsetBand(int x, int y, int band, float value)Returns the value of the specified band in the specified pixel.-
Methods inherited from class boofcv.struct.image.ImageInterleaved
getIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimage
-
Methods inherited from class boofcv.struct.image.ImageBase
clone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimage
-
-
-
-
Constructor Detail
-
InterleavedF32
public InterleavedF32(int width, int height, int numBands)Creates a new image with an arbitrary number of bands/colors.- Parameters:
width- number of columns in the image.height- number of rows in the image.numBands- number of bands/colors in the image.
-
InterleavedF32
public InterleavedF32()
-
-
Method Detail
-
getDataType
public ImageDataType getDataType()
Description copied from class:ImageInterleavedReturns image type information- Specified by:
getDataTypein classImageInterleaved<InterleavedF32>- Returns:
- The type of image.
-
get
public float[] get(int x, int y, float[] storage)Returns the pixel's value for all the bands as an array.- Parameters:
x- pixel coordinate.y- pixel coordinate.storage- If not null then the pixel's value is written here. If null a new array is created.- Returns:
- The pixel's value.
-
get_unsafe
public void get_unsafe(int x, int y, float[] storage)
-
set
public void set(int x, int y, float... value)Sets the pixel's value for all the bands using an array.- Parameters:
x- pixel coordinate.y- pixel coordinate.value- The pixel's new value for each band.
-
set_unsafe
public void set_unsafe(int x, int y, float[] value)
-
getBand
public float getBand(int x, int y, int band)Returns the value of the specified band in the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixel- Returns:
- an intensity value.
-
setBand
public void setBand(int x, int y, int band, float value)Returns the value of the specified band in the specified pixel.- Parameters:
x- pixel coordinate.y- pixel coordinate.band- which color band in the pixelvalue- The new value of the element.
-
_createNew
public InterleavedF32 _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<InterleavedF32>- Parameters:
imgWidth- Width of the new imageimgHeight- height of the new image- Returns:
- new image
-
print
public void print(java.lang.String format)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG