@Deprecated public class SCameraImageMatrix extends Object
SCamera.SCAMERA_IMAGE
feature or the SCamera
is not initialized, all methods on this class will throw an UnsupportedOperationException.Constructor and Description |
---|
SCameraImageMatrix(int width,
int height)
Deprecated.
Create SCameraImageMatrix.
|
Modifier and Type | Method and Description |
---|---|
float |
getAt(int x,
int y)
Deprecated.
Returns the value of an element at position (x,y).
|
int |
getHeight()
Deprecated.
The height of the matrix in pixels.
|
float[] |
getValues()
Deprecated.
Get Matrix value.
|
int |
getWidth()
Deprecated.
The Width of the matrix in pixels.
|
void |
release()
Deprecated.
Free up the Matrix data and releases all resources allocated to it.
|
void |
setAt(int x,
int y,
float value)
Deprecated.
Sets the element value at (x,y) position.
|
void |
setValues(float[] data)
Deprecated.
Create SCameraImageMatrix.
|
public SCameraImageMatrix(int width, int height)
width
- Width of the Matrixheight
- Height of the MatrixIllegalArgumentException
- If given width and height is lower than 0.public void release()
public void setValues(float[] data)
data
- float matrix DataIllegalArgumentException
- If data is not equal width * size.public float[] getValues()
IllegalArgumentException
- If matrix is not initialized.public int getWidth()
public int getHeight()
public void setAt(int x, int y, float value)
x
- Position in x-coordinatey
- Position in y-coordinatevalue
- Sets the element value at position (x,y)IllegalArgumentException
- If param is not in matrix.public float getAt(int x, int y)
x
- Position in x-coordinatey
- Position in y-coordinateIllegalArgumentException
- If param is not in matrix.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.