@Namespace(value="ARToolKitPlus") @NoOffset @Properties(inherit=ARToolKitPlus.class) public class TrackerMultiMarker extends Tracker
| 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(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calc(byte[] nImage) |
int |
calc(ByteBuffer nImage) |
int |
calc(org.bytedeco.javacpp.BytePointer nImage)
calculates the transformation matrix
pass the image as RGBX (32-bits)
|
void |
getARMatrix(float[] nMatrix) |
void |
getARMatrix(FloatBuffer nMatrix) |
void |
getARMatrix(org.bytedeco.javacpp.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(org.bytedeco.javacpp.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(org.bytedeco.javacpp.BytePointer nCamParamFile,
org.bytedeco.javacpp.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, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic TrackerMultiMarker(org.bytedeco.javacpp.Pointer p)
Pointer.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*")
org.bytedeco.javacpp.BytePointer nCamParamFile,
@Cast(value="const char*")
org.bytedeco.javacpp.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*")
org.bytedeco.javacpp.BytePointer nImage)
public int calc(@Cast(value="const uint8_t*")
ByteBuffer nImage)
public int calc(@Cast(value="const uint8_t*")
byte[] nImage)
public int getNumDetectedMarkers()
public void setUseDetectLite(@Cast(value="bool")
boolean nEnable)
public void getDetectedMarkers(@ByPtrRef
org.bytedeco.javacpp.IntPointer nMarkerIDs)
public void getDetectedMarkers(@ByPtrRef
IntBuffer 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]")
org.bytedeco.javacpp.FloatPointer nMatrix)
public void getARMatrix(@Cast(value="ARFloat(* /*[3]*/ )[4]")
FloatBuffer nMatrix)
public void getARMatrix(@Cast(value="ARFloat(* /*[3]*/ )[4]")
float[] nMatrix)
Copyright © 2019. All rights reserved.