void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(image); if (!(signature.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("signature is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_signature = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(signature); wrapped_owner.computeSignature(wrapped_image, wrapped_signature); }
//javadoc: PCTSignatures::create(initSampleCount) public static PCTSignatures create(int initSampleCount) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_12(initSampleCount)); return(retVal); #else return(null); #endif }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, int initSeedCount) // /** * Creates PCTSignatures algorithm using pre-generated sampling points * and number of clusterization seeds. It uses the provided * sampling points and generates its own clusterization seed indexes. * param initSamplingPoints Sampling points used in image sampling. * param initSeedCount Number of initial clusterization seeds. * Must be lower or equal to initSamplingPoints.size(). * return Created algorithm. */ public static PCTSignatures create(MatOfPoint2f initSamplingPoints, int initSeedCount) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } Mat initSamplingPoints_mat = initSamplingPoints; return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_14(initSamplingPoints_mat.nativeObj, initSeedCount))); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); storeResult.Value = wrapped_owner.getJoiningDistance(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); wrapped_owner.setWeightX(weight.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfInt)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfInt(); } ((OpenCVForUnityPlayMakerActions.MatOfInt)storeResult.Value).wrappedObject = wrapped_owner.getInitSeedIndexes(); }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, int initSeedCount) // //javadoc: PCTSignatures::create(initSamplingPoints, initSeedCount) public static PCTSignatures create(MatOfPoint2f initSamplingPoints, int initSeedCount) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat initSamplingPoints_mat = initSamplingPoints; PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_14(initSamplingPoints_mat.nativeObj, initSeedCount)); return(retVal); #else return(null); #endif }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, vector_int initClusterSeedIndexes) // /** * Creates PCTSignatures algorithm using pre-generated sampling points * and clusterization seeds indexes. * param initSamplingPoints Sampling points used in image sampling. * param initClusterSeedIndexes Indexes of initial clusterization seeds. * Its size must be lower or equal to initSamplingPoints.size(). * return Created algorithm. */ public static PCTSignatures create(MatOfPoint2f initSamplingPoints, MatOfInt initClusterSeedIndexes) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } if (initClusterSeedIndexes != null) { initClusterSeedIndexes.ThrowIfDisposed(); } Mat initSamplingPoints_mat = initSamplingPoints; Mat initClusterSeedIndexes_mat = initClusterSeedIndexes; return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_15(initSamplingPoints_mat.nativeObj, initClusterSeedIndexes_mat.nativeObj))); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(weights.Value is OpenCVForUnityPlayMakerActions.MatOfFloat)) { LogError("weights is not initialized. Add Action \"newMatOfFloat\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat wrapped_weights = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(weights); wrapped_owner.setWeights(wrapped_weights); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(initSeedIndexes.Value is OpenCVForUnityPlayMakerActions.MatOfInt)) { LogError("initSeedIndexes is not initialized. Add Action \"newMatOfInt\"."); return; } OpenCVForUnity.CoreModule.MatOfInt wrapped_initSeedIndexes = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfInt, OpenCVForUnity.CoreModule.MatOfInt>(initSeedIndexes); wrapped_owner.setInitSeedIndexes(wrapped_initSeedIndexes); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(samplingPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("samplingPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_samplingPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(samplingPoints); wrapped_owner.setSamplingPoints(wrapped_samplingPoints); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_images = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(images, wrapped_images); List <OpenCVForUnity.CoreModule.Mat> wrapped_signatures = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(signatures, wrapped_signatures); wrapped_owner.computeSignatures(wrapped_images, wrapped_signatures); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_images, images); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_signatures, signatures); }
public PCTSignatures(OpenCVForUnity.Xfeatures2dModule.PCTSignatures nativeObj) : base(nativeObj) { }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(int initSampleCount = 2000, int initSeedCount = 400, int pointDistribution = 0) // /** * Creates PCTSignatures algorithm using sample and seed count. * It generates its own sets of sampling points and clusterization seed indexes. * param initSampleCount Number of points used for image sampling. * param initSeedCount Number of initial clusterization seeds. * Must be lower or equal to initSampleCount * param pointDistribution Distribution of generated points. Default: UNIFORM. * Available: UNIFORM, REGULAR, NORMAL. * return Created algorithm. */ public static PCTSignatures create(int initSampleCount, int initSeedCount, int pointDistribution) { return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_10(initSampleCount, initSeedCount, pointDistribution))); }
/** * Creates PCTSignatures algorithm using sample and seed count. * It generates its own sets of sampling points and clusterization seed indexes. * Must be lower or equal to initSampleCount * Available: UNIFORM, REGULAR, NORMAL. * return Created algorithm. */ public static PCTSignatures create() { return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_13())); }
/** * Creates PCTSignatures algorithm using sample and seed count. * It generates its own sets of sampling points and clusterization seed indexes. * param initSampleCount Number of points used for image sampling. * Must be lower or equal to initSampleCount * Available: UNIFORM, REGULAR, NORMAL. * return Created algorithm. */ public static PCTSignatures create(int initSampleCount) { return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_12(initSampleCount))); }