|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cyberlab.support.ImageOps
public class ImageOps
Various image operations used by the framework and made available to the framework user.
Constructor Summary | |
---|---|
ImageOps()
|
Method Summary | |
---|---|
static Bitmap |
drawKeyPoints(Bitmap srcImg,
java.util.ArrayList<org.opencv.features2d.KeyPoint> kps)
Draws the keypoints onto the bitmap image |
static float |
exifOrientationToDegrees(int exifOrientation)
|
static Bitmap |
loadImage(java.lang.String bitmapPath,
int toWidth,
int toHeight)
Default function to load image from a file (without using the images EXIF data to rotate it according to the device orientation). |
static Bitmap |
loadImage(java.lang.String bitmapPath,
int toWidth,
int toHeight,
boolean preRotate)
Function to load image from a file. |
static org.opencv.core.Mat |
Mat_draw_KeyPoints(org.opencv.core.Mat srcMat,
java.util.ArrayList<org.opencv.features2d.KeyPoint> kps)
Draws the keypoints onto the Mat object. |
static Bitmap |
matToBitmap(org.opencv.core.Mat image)
Converts a Mat to a Bitmap wher the pixels are stored as ARGB_8888. |
static Bitmap |
resize(Bitmap bitmap,
int toWidth,
int toHeight)
Function to resize image to fit within the given height and width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageOps()
Method Detail |
---|
public static Bitmap drawKeyPoints(Bitmap srcImg, java.util.ArrayList<org.opencv.features2d.KeyPoint> kps)
srcImg
- The image of which the keypoints are to be drawn on.kps
- The keypoints
public static float exifOrientationToDegrees(int exifOrientation)
public static org.opencv.core.Mat Mat_draw_KeyPoints(org.opencv.core.Mat srcMat, java.util.ArrayList<org.opencv.features2d.KeyPoint> kps)
Mat
object.
srcMat
- The input Matkps
- The list of keypoints.
public static Bitmap matToBitmap(org.opencv.core.Mat image)
image
- The image as Mat
public static Bitmap loadImage(java.lang.String bitmapPath, int toWidth, int toHeight)
bitmapPath
- The location of the image.toWidth
- The requested output image width.toHeight
- The requested output image height.
loadImage(String, int, int, boolean)
public static Bitmap loadImage(java.lang.String bitmapPath, int toWidth, int toHeight, boolean preRotate)
bitmapPath
- The location of the imagetoWidth
- The requested output image widthtoHeight
- The requested output image heightpreRotate
- if true the image will be rotated using EXIF data to correspond to device rotation.
public static Bitmap resize(Bitmap bitmap, int toWidth, int toHeight)
bitmap
- The original bitmap.toWidth
- The requested output image width.toHeight
- The requested output image height.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |