FastCV Sample Application
1.7.1
|
Inherits com.qualcomm.fastcvdemo.base.GraphicalActivity.
Public Member Functions | |
boolean | onOptionsItemSelected (MenuItem item) |
native void | update (byte[] data, int w, int h) |
native void | cleanup () |
native String | detectionMethod () |
Protected Member Functions | |
void | initTitle () |
void | onResume () |
void | updatePreferences () |
void | startPreview () |
void | stopPreview () |
void | setupCamera () |
native void | setFastCornerThreshold (int threshold) |
native void | setScaling (int scaleFactor) |
native void | setViewFinderEnable (boolean enableViewFinder) |
native void | setOverlayPixelsEnable (boolean enableOverlayPixels) |
native void | setGaussianEnable (boolean enableGaussian) |
native void | setDetection (int detectionSwitch) |
native int | getNumCorners () |
Protected Attributes | |
Runnable | mUpdateTimeTask |
Static Package Functions | |
[static initializer] |
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.cleanup | ( | ) | [virtual] |
Performs native cleanup routines for application exit.
Implements com.qualcomm.fastcvdemo.base.GraphicalActivity.
native String com.qualcomm.fastcvdemo.apis.featureDetection.Corner.detectionMethod | ( | ) |
Retrieves the name of the detection method being used.
native int com.qualcomm.fastcvdemo.apis.featureDetection.Corner.getNumCorners | ( | ) | [protected] |
Retrieves the latest number of corners for debug purposes.
void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.initTitle | ( | ) | [inline, protected, virtual] |
Function which retrieves title based on module used.
Implements com.qualcomm.fastcvdemo.base.GraphicalActivity.
void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.onResume | ( | ) | [inline, protected] |
Resumes camera preview
Reimplemented from com.qualcomm.fastcvdemo.base.GraphicalActivity.
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setDetection | ( | int | detectionSwitch | ) | [protected] |
Sets the detection function to be used.
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setFastCornerThreshold | ( | int | threshold | ) | [protected] |
Sets the native FAST corner threshold.
threshold | Barrier threshold to FAST Corner algorithm. |
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setGaussianEnable | ( | boolean | enableGaussian | ) | [protected] |
Enables/disables blurring camera image before processing corners.
enableGaussian | Flag enables/disables Gaussian blurring. |
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setOverlayPixelsEnable | ( | boolean | enableOverlayPixels | ) | [protected] |
Enables/disables overlaying of pixels.
enableOverlayPixels | Flag to enable/disable pixel overlay. |
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setScaling | ( | int | scaleFactor | ) | [protected] |
Sets the desired scaling factor.
scaleFactor | Desired scaling factor, 1 is no scaling. |
void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setupCamera | ( | ) | [inline, protected] |
Sets up camera configuration parameters
Reimplemented from com.qualcomm.fastcvdemo.base.GraphicalActivity.
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.setViewFinderEnable | ( | boolean | enableViewFinder | ) | [protected] |
Enables caller to disable camera backdrop.
enableViewFinder | Flag to enable/disable camera backdrop. |
void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.startPreview | ( | ) | [inline, protected] |
Starts camera preview
Reimplemented from com.qualcomm.fastcvdemo.base.GraphicalActivity.
void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.stopPreview | ( | ) | [inline, protected] |
Stops camera preview
Reimplemented from com.qualcomm.fastcvdemo.base.GraphicalActivity.
native void com.qualcomm.fastcvdemo.apis.featureDetection.Corner.update | ( | byte[] | data, |
int | w, | ||
int | h | ||
) | [virtual] |
Function to pass camera frame for native, FastCV processing.
data | Byte buffer for data. |
w | Width of data |
h | Height of data |
Implements com.qualcomm.fastcvdemo.base.GraphicalActivity.
Runnable com.qualcomm.fastcvdemo.apis.featureDetection.Corner.mUpdateTimeTask [protected] |
Handler for FPS display. Want to do this periodically to not waste CPU.
Reimplemented from com.qualcomm.fastcvdemo.base.GraphicalActivity.