public static class ARToolKitPlus.TrackerMultiMarker extends ARToolKitPlus.Tracker
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ARToolKitPlus.TrackerMultiMarker() |
ARToolKitPlus.TrackerMultiMarker(int imWidth,
int imHeight) |
ARToolKitPlus.TrackerMultiMarker(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.TrackerMultiMarker(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
int |
calc(byte[] nImage) |
int |
calc(ByteBuffer nImage) |
int |
calc(BytePointer nImage)
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' internal version of the transformation matrix
This method is primarily for compatibility issues with code previously using
ARToolKit rather than ARToolKitPlus.
|
ARToolKitPlus.ARMarkerInfo |
getDetectedMarker(int nWhich) |
void |
getDetectedMarkers(int[] nMarkerIDs) |
void |
getDetectedMarkers(IntBuffer nMarkerIDs) |
void |
getDetectedMarkers(IntPointer nMarkerIDs)
Returns array of detected marker IDs
Only access the first getNumDetectedMarkers() markers
|
ARToolKitPlus.ARMultiMarkerInfoT |
getMultiMarkerConfig()
Returns the loaded ARMultiMarkerInfoT object
If loading the multi-marker config file failed then this method
returns NULL.
|
int |
getNumDetectedMarkers() |
boolean |
init(BytePointer nCamParamFile,
BytePointer nMultiFile,
float nNearClip,
float nFarClip)
initializes ARToolKit
nCamParamFile is the name of the camera parameter file
nNearClip & nFarClip are near and far clipping values for the OpenGL projection matrix
nLogger is an instance which implements the ARToolKit::Logger interface
|
boolean |
init(String nCamParamFile,
String nMultiFile,
float nNearClip,
float nFarClip) |
void |
setUseDetectLite(boolean nEnable)
Enables usage of arDetectMarkerLite.
|
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.TrackerMultiMarker()
public ARToolKitPlus.TrackerMultiMarker(Pointer p)
public ARToolKitPlus.TrackerMultiMarker(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.TrackerMultiMarker(int imWidth,
int imHeight)
public boolean init(BytePointer nCamParamFile, BytePointer nMultiFile, float nNearClip, float nFarClip)
public int calc(BytePointer nImage)
public int calc(ByteBuffer nImage)
public int calc(byte[] nImage)
public int getNumDetectedMarkers()
public void setUseDetectLite(boolean nEnable)
public void getDetectedMarkers(IntPointer nMarkerIDs)
public void getDetectedMarkers(IntBuffer nMarkerIDs)
public void getDetectedMarkers(int[] nMarkerIDs)
public ARToolKitPlus.ARMarkerInfo getDetectedMarker(int nWhich)
public ARToolKitPlus.ARMultiMarkerInfoT getMultiMarkerConfig()
public void getARMatrix(FloatPointer nMatrix)
public void getARMatrix(FloatBuffer nMatrix)
public void getARMatrix(float[] nMatrix)
Copyright © 2014. All Rights Reserved.