public static class ARToolKitPlus.Tracker extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ARToolKitPlus.Tracker() |
ARToolKitPlus.Tracker(int imWidth,
int imHeight) |
ARToolKitPlus.Tracker(int imWidth,
int imHeight,
int maxImagePatterns,
int pattWidth,
int pattHeight,
int pattSamples,
int maxLoadPatterns) |
ARToolKitPlus.Tracker(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateAutoThreshold(boolean nEnable)
Turns automatic threshold calculation on/off
|
void |
activateBinaryMarker(int nThreshold)
activates binary markers
markers are converted to pure black/white during loading
|
void |
activateVignettingCompensation(boolean nEnable) |
void |
activateVignettingCompensation(boolean nEnable,
int nCorners,
int nLeftRight,
int nTopBottom)
activates the complensation of brightness falloff in the corners of the camera image
some cameras have a falloff in brightness at the border of the image, which creates
problems with thresholding the image.
|
int |
arDetectMarker(byte[] dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
int[] marker_num) |
int |
arDetectMarker(ByteBuffer dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
IntBuffer marker_num) |
int |
arDetectMarker(BytePointer dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
IntPointer marker_num) |
int |
arDetectMarker(BytePointer dataPtr,
int thresh,
PointerPointer marker_info,
IntPointer marker_num)
marker detection using tracking history
|
int |
arDetectMarkerLite(byte[] dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
int[] marker_num) |
int |
arDetectMarkerLite(ByteBuffer dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
IntBuffer marker_num) |
int |
arDetectMarkerLite(BytePointer dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
IntPointer marker_num) |
int |
arDetectMarkerLite(BytePointer dataPtr,
int thresh,
PointerPointer marker_info,
IntPointer marker_num)
marker detection without using tracking history
|
int |
arFreePatt(int patno)
frees a pattern from memory
|
float |
arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
float[] center,
float width,
float[] conv) |
float |
arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
FloatBuffer center,
float width,
FloatBuffer conv) |
float |
arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
FloatPointer center,
float width,
FloatPointer conv)
calculates the transformation matrix between camera and the given marker
|
float |
arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info,
float[] prev_conv,
float[] center,
float width,
float[] conv) |
float |
arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info,
FloatBuffer prev_conv,
FloatBuffer center,
float width,
FloatBuffer conv) |
float |
arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info,
FloatPointer prev_conv,
FloatPointer center,
float width,
FloatPointer conv) |
int |
arLoadPatt(byte[] filename) |
int |
arLoadPatt(ByteBuffer filename) |
int |
arLoadPatt(BytePointer filename)
loads a pattern from a file
|
int |
arMultiFreeConfig(ARToolKitPlus.ARMultiMarkerInfoT config) |
float |
arMultiGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
int marker_num,
ARToolKitPlus.ARMultiMarkerInfoT config)
calculates the transformation matrix between camera and the given multi-marker config
|
float |
arMultiGetTransMatHull(ARToolKitPlus.ARMarkerInfo marker_info,
int marker_num,
ARToolKitPlus.ARMultiMarkerInfoT config) |
ARToolKitPlus.ARMultiMarkerInfoT |
arMultiReadConfigFile(BytePointer filename) |
ARToolKitPlus.ARMultiMarkerInfoT |
arMultiReadConfigFile(String filename) |
static boolean |
calcCameraMatrix(BytePointer nCamParamFile,
float nNear,
float nFar,
float[] nMatrix) |
static boolean |
calcCameraMatrix(BytePointer nCamParamFile,
float nNear,
float nFar,
FloatBuffer nMatrix) |
static boolean |
calcCameraMatrix(BytePointer nCamParamFile,
float nNear,
float nFar,
FloatPointer nMatrix)
Calculates the camera matrix from an ARToolKit camera file.
|
static boolean |
calcCameraMatrix(String nCamParamFile,
float nNear,
float nFar,
float[] nMatrix) |
static boolean |
calcCameraMatrix(String nCamParamFile,
float nNear,
float nFar,
FloatBuffer nMatrix) |
static boolean |
calcCameraMatrix(String nCamParamFile,
float nNear,
float nFar,
FloatPointer nMatrix) |
float |
calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo,
float[] nPatternCenter,
float nPatternSize,
float[] nOpenGLMatrix) |
float |
calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo,
FloatBuffer nPatternCenter,
float nPatternSize,
FloatBuffer nOpenGLMatrix) |
float |
calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo,
FloatPointer nPatternCenter,
float nPatternSize,
FloatPointer nOpenGLMatrix)
Calculates the OpenGL transformation matrix for a specific marker info
|
void |
changeCameraSize(int nWidth,
int nHeight)
Changes the resolution of the camera after the camerafile was already loaded
|
float |
executeMultiMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info,
int marker_num,
ARToolKitPlus.ARMultiMarkerInfoT config)
Calls the pose estimator set with setPoseEstimator() for multi marker tracking
|
float |
executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info,
float[] center,
float width,
float[] conv) |
float |
executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info,
FloatBuffer center,
float width,
FloatBuffer conv) |
float |
executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info,
FloatPointer center,
float width,
FloatPointer conv)
Calls the pose estimator set with setPoseEstimator() for single marker tracking
|
int |
getBitsPerPixel()
Returns the numbber of bits per pixel for the compiled-in pixel format
|
ARToolKitPlus.Camera |
getCamera()
Returns the current camera
|
FloatPointer |
getModelViewMatrix()
Returns an opengl-style modelview transformation matrix
|
int |
getNumLoadablePatterns()
Returns the maximum number of patterns that can be loaded
This maximum number of loadable patterns can be set via the
maxLoadPatterns parameter
|
int |
getPixelFormat()
Returns the compiled-in pixel format
|
FloatPointer |
getProjectionMatrix()
Returns an opengl-style projection transformation matrix
|
int |
getThreshold()
Returns the current threshold value.
|
ARToolKitPlus.CornerPoint |
getTrackedCorners() |
boolean |
isAutoThresholdActivated()
Returns true if automatic threshold detection is enabled
|
boolean |
loadCameraFile(BytePointer nCamParamFile,
float nNearClip,
float nFarClip)
Loads a camera calibration file and stores data internally
To prevent memory leaks, this method internally deletes an existing camera.
|
boolean |
loadCameraFile(String nCamParamFile,
float nNearClip,
float nFarClip) |
float |
rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
float[] center,
float width,
float[] conv) |
float |
rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
FloatBuffer center,
float width,
FloatBuffer conv) |
float |
rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
FloatPointer center,
float width,
FloatPointer conv) |
float |
rppMultiGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info,
int marker_num,
ARToolKitPlus.ARMultiMarkerInfoT config) |
void |
setBorderWidth(float nFraction)
Sets a new relative border width.
|
void |
setCamera(ARToolKitPlus.Camera nCamera)
Sets a new camera without specifying new near and far clip values
|
void |
setCamera(ARToolKitPlus.Camera nCamera,
float nNearClip,
float nFarClip)
Sets a new camera including specifying new near and far clip values
|
void |
setHullMode(int nMode)
If true the alternative hull-algorithm will be used for multi-marker tracking
Starting with version 2.2 ARToolKitPlus has a new mode for tracking multi-markers:
Instead of using all points (as done by RPP multi-marker tracking)
or tracking all markers independently and combine lateron
(as done in ARToolKit's standard multi-marker pose estimator), ARToolKitPlus can now
use only 4 'good' points of the convex hull to do the pose estimation.
|
void |
setImageProcessingMode(int nMode)
Sets an image processing mode (half or full resolution)
Half resolution is faster but less accurate.
|
void |
setLoadUndistLUT(boolean nSet)
Set to true to try loading camera undistortion table from a cache file
On slow platforms (e.g.
|
void |
setMarkerMode(int nMarkerMode)
activate the usage of id-based markers rather than template based markers
Template markers are the classic marker type used in ARToolKit.
|
void |
setNumAutoThresholdRetries(int nNumRetries)
Sets the number of times the threshold is randomized in case no marker was visible (Minimum: 1, Default: 2)
Autothreshold requires a visible marker to estime the optimal thresholding value.
|
boolean |
setPixelFormat(int nFormat)
Sets the pixel format of the camera image
Default format is RGB888 (PIXEL_FORMAT_RGB)
|
boolean |
setPoseEstimator(int nMethod)
Changes the Pose Estimation Algorithm
POSE_ESTIMATOR_ORIGINAL (default): arGetTransMat()
POSE_ESTIMATOR_CONT: original pose estimator with "Cont"
POSE_ESTIMATOR_RPP: "Robust Pose Estimation from a Planar Target"
|
void |
setThreshold(int nValue)
Sets the threshold value that is used for black/white conversion
|
void |
setUndistortionMode(int nMode)
Changes the undistortion mode
Default value is UNDIST_STD which means that
artoolkit's standard undistortion method is used.
|
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, withDeallocator, zeropublic ARToolKitPlus.Tracker()
public ARToolKitPlus.Tracker(Pointer p)
public ARToolKitPlus.Tracker(int imWidth,
int imHeight,
int maxImagePatterns,
int pattWidth,
int pattHeight,
int pattSamples,
int maxLoadPatterns)
public ARToolKitPlus.Tracker(int imWidth,
int imHeight)
public boolean setPixelFormat(int nFormat)
public boolean loadCameraFile(BytePointer nCamParamFile, float nNearClip, float nFarClip)
public boolean loadCameraFile(String nCamParamFile, float nNearClip, float nFarClip)
public void setLoadUndistLUT(boolean nSet)
public int arDetectMarker(BytePointer dataPtr, int thresh, PointerPointer marker_info, IntPointer marker_num)
public int arDetectMarker(BytePointer dataPtr, int thresh, ARToolKitPlus.ARMarkerInfo marker_info, IntPointer marker_num)
public int arDetectMarker(ByteBuffer dataPtr, int thresh, ARToolKitPlus.ARMarkerInfo marker_info, IntBuffer marker_num)
public int arDetectMarker(byte[] dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
int[] marker_num)
public int arDetectMarkerLite(BytePointer dataPtr, int thresh, PointerPointer marker_info, IntPointer marker_num)
public int arDetectMarkerLite(BytePointer dataPtr, int thresh, ARToolKitPlus.ARMarkerInfo marker_info, IntPointer marker_num)
public int arDetectMarkerLite(ByteBuffer dataPtr, int thresh, ARToolKitPlus.ARMarkerInfo marker_info, IntBuffer marker_num)
public int arDetectMarkerLite(byte[] dataPtr,
int thresh,
ARToolKitPlus.ARMarkerInfo marker_info,
int[] marker_num)
public float arMultiGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, int marker_num, ARToolKitPlus.ARMultiMarkerInfoT config)
public float arMultiGetTransMatHull(ARToolKitPlus.ARMarkerInfo marker_info, int marker_num, ARToolKitPlus.ARMultiMarkerInfoT config)
public float arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, FloatPointer center, float width, FloatPointer conv)
public float arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, FloatBuffer center, float width, FloatBuffer conv)
public float arGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, float[] center, float width, float[] conv)
public float arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info, FloatPointer prev_conv, FloatPointer center, float width, FloatPointer conv)
public float arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info, FloatBuffer prev_conv, FloatBuffer center, float width, FloatBuffer conv)
public float arGetTransMatCont(ARToolKitPlus.ARMarkerInfo marker_info, float[] prev_conv, float[] center, float width, float[] conv)
public float rppMultiGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, int marker_num, ARToolKitPlus.ARMultiMarkerInfoT config)
public float rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, FloatPointer center, float width, FloatPointer conv)
public float rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, FloatBuffer center, float width, FloatBuffer conv)
public float rppGetTransMat(ARToolKitPlus.ARMarkerInfo marker_info, float[] center, float width, float[] conv)
public int arLoadPatt(BytePointer filename)
public int arLoadPatt(ByteBuffer filename)
public int arLoadPatt(byte[] filename)
public int arFreePatt(int patno)
public int arMultiFreeConfig(ARToolKitPlus.ARMultiMarkerInfoT config)
public ARToolKitPlus.ARMultiMarkerInfoT arMultiReadConfigFile(BytePointer filename)
public ARToolKitPlus.ARMultiMarkerInfoT arMultiReadConfigFile(String filename)
public void activateBinaryMarker(int nThreshold)
public void setMarkerMode(int nMarkerMode)
public void activateVignettingCompensation(boolean nEnable,
int nCorners,
int nLeftRight,
int nTopBottom)
public void activateVignettingCompensation(boolean nEnable)
public static boolean calcCameraMatrix(BytePointer nCamParamFile, float nNear, float nFar, FloatPointer nMatrix)
public static boolean calcCameraMatrix(String nCamParamFile, float nNear, float nFar, FloatBuffer nMatrix)
public static boolean calcCameraMatrix(BytePointer nCamParamFile, float nNear, float nFar, float[] nMatrix)
public static boolean calcCameraMatrix(String nCamParamFile, float nNear, float nFar, FloatPointer nMatrix)
public static boolean calcCameraMatrix(BytePointer nCamParamFile, float nNear, float nFar, FloatBuffer nMatrix)
public static boolean calcCameraMatrix(String nCamParamFile, float nNear, float nFar, float[] nMatrix)
public void changeCameraSize(int nWidth,
int nHeight)
public void setUndistortionMode(int nMode)
public boolean setPoseEstimator(int nMethod)
public void setHullMode(int nMode)
public void setBorderWidth(float nFraction)
public void setThreshold(int nValue)
public int getThreshold()
public void activateAutoThreshold(boolean nEnable)
public boolean isAutoThresholdActivated()
public void setNumAutoThresholdRetries(int nNumRetries)
public void setImageProcessingMode(int nMode)
public FloatPointer getModelViewMatrix()
public FloatPointer getProjectionMatrix()
public int getPixelFormat()
public int getBitsPerPixel()
public int getNumLoadablePatterns()
public ARToolKitPlus.Camera getCamera()
public void setCamera(ARToolKitPlus.Camera nCamera)
public void setCamera(ARToolKitPlus.Camera nCamera, float nNearClip, float nFarClip)
public float calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo, FloatPointer nPatternCenter, float nPatternSize, FloatPointer nOpenGLMatrix)
public float calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo, FloatBuffer nPatternCenter, float nPatternSize, FloatBuffer nOpenGLMatrix)
public float calcOpenGLMatrixFromMarker(ARToolKitPlus.ARMarkerInfo nMarkerInfo, float[] nPatternCenter, float nPatternSize, float[] nOpenGLMatrix)
public float executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info, FloatPointer center, float width, FloatPointer conv)
public float executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info, FloatBuffer center, float width, FloatBuffer conv)
public float executeSingleMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info, float[] center, float width, float[] conv)
public float executeMultiMarkerPoseEstimator(ARToolKitPlus.ARMarkerInfo marker_info, int marker_num, ARToolKitPlus.ARMultiMarkerInfoT config)
public ARToolKitPlus.CornerPoint getTrackedCorners()
Copyright © 2014. All Rights Reserved.