public static Matrix4x4f EstimatePoseWrapped(ref Target target, ref PoseParameters param) { #if UNITY_EDITOR return(CARDSTrackingPlugin.estimate_pose(ref target, ref param)); #else return(EstimatePose(ref target, ref param)); #endif }
public static unsafe void TrackWrapped(ref Frame frame, Target *targets, int maxTarget) { #if UNITY_EDITOR CARDSTrackingPlugin.track(ref frame, targets, maxTarget); #else Track(ref frame, targets, maxTarget); #endif }
public static unsafe bool DetectWrapped(ref Frame frame, ref Frame frameBackground, ref RectStruct zoneDetection, Target *targets, ref int nbTarget, int maxTarget, int mode) { #if UNITY_EDITOR return(CARDSTrackingPlugin.detect(ref frame, ref frameBackground, ref zoneDetection, targets, ref nbTarget, maxTarget, mode)); #else return(Detect(ref frame, ref zoneDetection, targets, ref nbTarget, maxTarget, mode)); #endif }
public static unsafe void UnRegisterWrapped(int id, Target *targets, ref int nbTarget) { #if UNITY_EDITOR CARDSTrackingPlugin.un_register(id, targets, ref nbTarget); #else UnRegister(id, targets, ref nbTarget); #endif }
public static unsafe void RegisterWrapped(ref Frame frame, ref RectStruct zone, Target *targets, ref int nbTarget, int maxTarget) { #if UNITY_EDITOR CARDSTrackingPlugin.register(ref frame, ref zone, targets, ref nbTarget, maxTarget); #else Register(ref frame, ref zone, targets, ref nbTarget, maxTarget); #endif }
public static unsafe void CloseWrapped(Target *targets, ref int nbTarget, int maxTarget) { #if UNITY_EDITOR CARDSTrackingPlugin.close(targets, ref nbTarget, maxTarget); #else Close(targets, ref nbTarget, maxTarget); #endif }