@Namespace(value="ARToolKitPlus") @NoOffset @Properties(inherit=ARToolKitPlus.class) public class TrackerMultiMarker extends Tracker
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TrackerMultiMarker(int imWidth,
int imHeight) |
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.
|
TrackerMultiMarker(Pointer p)
Pointer cast constructor.
|
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.
|
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
|
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, setUndistortionMode
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TrackerMultiMarker(Pointer p)
Pointer(Pointer)
.public 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 TrackerMultiMarker(int imWidth, int imHeight)
@Cast(value="bool") public boolean init(@Cast(value="const char*") BytePointer nCamParamFile, @Cast(value="const char*") BytePointer nMultiFile, @Cast(value="ARFloat") float nNearClip, @Cast(value="ARFloat") float nFarClip)
@Cast(value="bool") public boolean init(String nCamParamFile, String nMultiFile, @Cast(value="ARFloat") float nNearClip, @Cast(value="ARFloat") float nFarClip)
public int calc(@Cast(value="const uint8_t*") BytePointer nImage)
public int calc(@Cast(value="const uint8_t*") ByteBuffer nImage)
public int getNumDetectedMarkers()
public void setUseDetectLite(@Cast(value="bool") boolean nEnable)
public void getDetectedMarkers(@ByPtrRef IntPointer nMarkerIDs)
public void getDetectedMarkers(@ByPtrRef int[] nMarkerIDs)
@Const @ByRef public ARMarkerInfo getDetectedMarker(int nWhich)
@Const public ARMultiMarkerInfoT getMultiMarkerConfig()
public void getARMatrix(@Cast(value="ARFloat(* /*[3]*/ )[4]") FloatPointer nMatrix)
public void getARMatrix(@Cast(value="ARFloat(* /*[3]*/ )[4]") FloatBuffer nMatrix)
Copyright © 2023. All rights reserved.