@Deprecated public class SCameraImageCore extends Object
com.samsung.android.sdk.camera.image
package is a framework which works in a heterogeneous environment. This framework has the intelligence of dividing the data more efficiently and sharing that data to different platforms (CPU or GPU or both) for processing, so that application developers get maximum benefit in terms of performance.This framework supports image processing operations and mathematical operations.
All the operations are guaranteed for maximum execution speed since it utilizes the complete processing power.
SCamera.SCAMERA_IMAGE
feature or the SCamera
is not initialized, all methods on this class will throw an UnsupportedOperationException.Modifier and Type | Method and Description |
---|---|
static void |
calculateAffineRotation(SCameraImageMatrix transformMatrix,
float degrees,
float px,
float py)
Deprecated.
Postconcats the matrix with the specified rotation.
|
static void |
calculateAffineScale(SCameraImageMatrix transformMatrix,
float sx,
float sy)
Deprecated.
Postconcats the matrix with the specified scale.
|
static void |
calculateAffineSkew(SCameraImageMatrix transformMatrix,
float kx,
float ky)
Deprecated.
Postconcats the matrix with the specified skew.
|
static void |
calculateAffineTranslation(SCameraImageMatrix transformMatrix,
float dx,
float dy)
Deprecated.
Postconcats the matrix with the specified translation.
|
static SCameraImage |
convertImageFormat(SCameraImage image,
int format)
Deprecated.
Converts one color format to other color format.
|
static SCameraImage |
enhanceContrast(SCameraImage image,
int pivot,
float contrast)
Deprecated.
Enhances the contrast of the given source image and generates an output image.
|
static SCameraImage |
equalizeHistogram(SCameraImage image)
Deprecated.
It is an image intensity adjustment technique where gain in contrast can be seen in the output image.
|
static SCameraImage |
filterSpatial(SCameraImage image,
SCameraImageMatrix matrix)
Deprecated.
Spatial filtering is a neighborhood operation, where the value of a pixel in the output image is a weighted sum of the corresponding neighborhood pixels of input.
|
static SCameraImageMatrix |
getDefaultAffineMatrix()
Deprecated.
Returns 3X3 unit matrix to use in the affine transform functions.
|
static SCameraImage |
processMedian(SCameraImage image,
int size)
Deprecated.
Each output pixel contains the median value in the NxN neighbourhood around the corresponding pixel in the input image.
|
static SCameraImage |
processSobel(SCameraImage image,
int threshold)
Deprecated.
Calculates the gradient of the source image by applying the Sobel operator in requested direction (direction can be horizontal, vertical or both).
|
static SCameraImage |
warpAffine(SCameraImage image,
SCameraImageMatrix affineMatrix)
Deprecated.
Applies an affine transformation to the image with given affine matrix.
|
public static SCameraImage filterSpatial(SCameraImage image, SCameraImageMatrix matrix)
image
- The source image on which filter needs to be appliedmatrix
- Filter mask which defines the weightSCameraImage
IllegalArgumentException
- If input data is null.public static SCameraImage warpAffine(SCameraImage image, SCameraImageMatrix affineMatrix)
image
- The source imageaffineMatrix
- 3X3 affine transform matrix.SCameraImage
IllegalArgumentException
- If input data is null or param is greater than supported.public static void calculateAffineRotation(SCameraImageMatrix transformMatrix, float degrees, float px, float py)
IllegalArgumentException
- If input data is null or param is over than supported.public static void calculateAffineTranslation(SCameraImageMatrix transformMatrix, float dx, float dy)
IllegalArgumentException
- If input data is null or param is over than supported.public static void calculateAffineScale(SCameraImageMatrix transformMatrix, float sx, float sy)
IllegalArgumentException
- If input data is null or param is over than supported.public static void calculateAffineSkew(SCameraImageMatrix transformMatrix, float kx, float ky)
IllegalArgumentException
- If input data is null or param is over than supported.public static SCameraImageMatrix getDefaultAffineMatrix()
public static SCameraImage convertImageFormat(SCameraImage image, int format)
image
- The source imageformat
- The desired output format.SCameraImage
IllegalArgumentException
- If input data is null or given format is unsupported.public static SCameraImage equalizeHistogram(SCameraImage image)
image
- The source imageSCameraImage
IllegalArgumentException
- If input data is nullpublic static SCameraImage enhanceContrast(SCameraImage image, int pivot, float contrast)
image
- The source imagepivot
- Point of inflection of contrast curvecontrast
- Amount of enhancement to be appliedSCameraImage
IllegalArgumentException
- If input data is null or given contrast param is lower than 0 or bigger than 1 or pivot param is lower than 0 or bigger than 255.public static SCameraImage processSobel(SCameraImage image, int threshold)
[-1 0 1
-2 0 2
-1 0 1] // Vertical Sobel Operator.
[-1 -2 -1
0 0 0
1 2 1] //- Horizontal Sobel Operator.
image
- The source imagethreshold
- Strength of the edge to be detectedSCameraImage
IllegalArgumentException
- If input data is null or given threshold is lower than 0.public static SCameraImage processMedian(SCameraImage image, int size)
image
- The source imagesize
- Kernel sizeSCameraImage
IllegalArgumentException
- If input data is null or given size is lower than 0.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.