public static class ARToolKitPlus.TrackerSingleMarker extends ARToolKitPlus.Tracker
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ARToolKitPlus.TrackerSingleMarker() |
ARToolKitPlus.TrackerSingleMarker(int imWidth,
int imHeight) |
ARToolKitPlus.TrackerSingleMarker(int imWidth,
int imHeight,
int maxImagePatterns,
int pattWidth,
int pattHeight,
int pattSamples,
int maxLoadPatterns)
These parameters control the way the toolkit warps a found
marker to a perfect square.
|
ARToolKitPlus.TrackerSingleMarker(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
int |
addPattern(BytePointer nFileName)
adds a pattern to ARToolKit
pass the patterns filename
|
int |
addPattern(String nFileName) |
int[] |
calc(byte[] nImage) |
int[] |
calc(byte[] nImage,
ARToolKitPlus.ARMarkerInfo nMarker_info,
int[] nNumMarkers) |
IntBuffer |
calc(ByteBuffer nImage) |
IntBuffer |
calc(ByteBuffer nImage,
ARToolKitPlus.ARMarkerInfo nMarker_info,
IntBuffer nNumMarkers) |
IntPointer |
calc(BytePointer nImage) |
IntPointer |
calc(BytePointer nImage,
ARToolKitPlus.ARMarkerInfo nMarker_info,
IntPointer nNumMarkers) |
IntPointer |
calc(BytePointer nImage,
PointerPointer nMarker_info,
IntPointer nNumMarkers)
calculates the transformation matrix
pass the image as RGBX (32-bits)
|
void |
getARMatrix(float[] nMatrix) |
void |
getARMatrix(FloatBuffer nMatrix) |
void |
getARMatrix(FloatPointer nMatrix)
Provides access to ARToolKit' patt_trans matrix
This method is primarily for compatibility issues with code previously using
ARToolKit rather than ARToolKitPlus.
|
float |
getConfidence()
Returns the confidence value of the currently best detected marker.
|
boolean |
init(BytePointer nCamParamFile,
float nNearClip,
float nFarClip)
initializes TrackerSingleMarker
|
boolean |
init(String nCamParamFile,
float nNearClip,
float nFarClip) |
int |
selectBestMarkerByCf()
Select the best marker based on Confidence
|
void |
selectDetectedMarker(int id)
manually select one of the detected markers
instead of using the best one
|
void |
setPatternWidth(float nWidth)
Sets the width and height of the patterns in OpenGL units
defaults to 2.0, so the unity cube fits the marker surface
|
activateAutoThreshold, activateBinaryMarker, activateVignettingCompensation, activateVignettingCompensation, arDetectMarker, arDetectMarker, arDetectMarker, arDetectMarker, arDetectMarkerLite, arDetectMarkerLite, arDetectMarkerLite, arDetectMarkerLite, arFreePatt, arGetTransMat, arGetTransMat, arGetTransMat, arGetTransMatCont, arGetTransMatCont, arGetTransMatCont, arLoadPatt, arLoadPatt, arLoadPatt, arMultiFreeConfig, arMultiGetTransMat, arMultiGetTransMatHull, arMultiReadConfigFile, arMultiReadConfigFile, calcCameraMatrix, calcCameraMatrix, calcCameraMatrix, calcCameraMatrix, calcCameraMatrix, calcCameraMatrix, calcOpenGLMatrixFromMarker, calcOpenGLMatrixFromMarker, calcOpenGLMatrixFromMarker, changeCameraSize, executeMultiMarkerPoseEstimator, executeSingleMarkerPoseEstimator, executeSingleMarkerPoseEstimator, executeSingleMarkerPoseEstimator, getBitsPerPixel, getCamera, getModelViewMatrix, getNumLoadablePatterns, getPixelFormat, getProjectionMatrix, getThreshold, getTrackedCorners, isAutoThresholdActivated, loadCameraFile, loadCameraFile, rppGetTransMat, rppGetTransMat, rppGetTransMat, rppMultiGetTransMat, setBorderWidth, setCamera, setCamera, setHullMode, setImageProcessingMode, setLoadUndistLUT, setMarkerMode, setNumAutoThresholdRetries, setPixelFormat, setPoseEstimator, setThreshold, setUndistortionModeaddress, 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.TrackerSingleMarker()
public ARToolKitPlus.TrackerSingleMarker(Pointer p)
public ARToolKitPlus.TrackerSingleMarker(int imWidth,
int imHeight,
int maxImagePatterns,
int pattWidth,
int pattHeight,
int pattSamples,
int maxLoadPatterns)
imWidth - width of the source image in pximHeight - height of the source image in pxmaxImagePatterns - describes the maximum number of patterns that can be analyzed in a camera image.pattWidth - describes the pattern image width (must be 6 for binary markers)pattHeight - describes the pattern image height (must be 6 for binary markers)pattSamples - describes the maximum resolution at which a pattern is sampled from the camera image
(6 by default, must a a multiple of pattWidth and pattHeight).maxLoadPatterns - describes the maximum number of pattern files that can be loaded.
Reduce maxLoadPatterns and maxImagePatterns to reduce memory footprint.public ARToolKitPlus.TrackerSingleMarker(int imWidth,
int imHeight)
public boolean init(BytePointer nCamParamFile, float nNearClip, float nFarClip)
nCamParamFile - is the name of the camera parameter filepublic boolean init(String nCamParamFile, float nNearClip, float nFarClip)
public int addPattern(BytePointer nFileName)
public int addPattern(String nFileName)
public IntPointer calc(BytePointer nImage, PointerPointer nMarker_info, IntPointer nNumMarkers)
public IntPointer calc(BytePointer nImage)
public IntPointer calc(BytePointer nImage, ARToolKitPlus.ARMarkerInfo nMarker_info, IntPointer nNumMarkers)
public IntBuffer calc(ByteBuffer nImage, ARToolKitPlus.ARMarkerInfo nMarker_info, IntBuffer nNumMarkers)
public IntBuffer calc(ByteBuffer nImage)
public int[] calc(byte[] nImage,
ARToolKitPlus.ARMarkerInfo nMarker_info,
int[] nNumMarkers)
public int[] calc(byte[] nImage)
public void selectDetectedMarker(int id)
public int selectBestMarkerByCf()
public void setPatternWidth(float nWidth)
public void getARMatrix(FloatPointer nMatrix)
public void getARMatrix(FloatBuffer nMatrix)
public void getARMatrix(float[] nMatrix)
public float getConfidence()
Copyright © 2014. All Rights Reserved.