void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_patternImages = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(patternImages, wrapped_patternImages); if (!(dataModulationTerm.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dataModulationTerm is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dataModulationTerm = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dataModulationTerm); if (!(shadowMask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("shadowMask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_shadowMask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(shadowMask); wrapped_owner.computeDataModulationTerm(wrapped_patternImages, wrapped_dataModulationTerm, wrapped_shadowMask); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_patternImages, patternImages); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); if (!(projUnwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("projUnwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_projUnwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(projUnwrappedPhaseMap); if (!(camUnwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("camUnwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_camUnwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(camUnwrappedPhaseMap); List <OpenCVForUnity.CoreModule.Mat> wrapped_matches = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(matches, wrapped_matches); wrapped_owner.findProCamMatches(wrapped_projUnwrappedPhaseMap, wrapped_camUnwrappedPhaseMap, wrapped_matches); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_matches, matches); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); if (!(wrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("wrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_wrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(wrappedPhaseMap); if (!(unwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("unwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_unwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(unwrappedPhaseMap); if (!(shadowMask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("shadowMask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_shadowMask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(shadowMask); wrapped_owner.unwrapPhaseMap(wrapped_wrappedPhaseMap, wrapped_unwrappedPhaseMap, new OpenCVForUnity.CoreModule.Size((double)camSize_width.Value, (double)camSize_height.Value), wrapped_shadowMask); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); if (!(wrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("wrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_wrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(wrappedPhaseMap); if (!(unwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("unwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_unwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(unwrappedPhaseMap); if (!(camSize.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("camSize is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_camSize = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(camSize); wrapped_owner.unwrapPhaseMap(wrapped_wrappedPhaseMap, wrapped_unwrappedPhaseMap, wrapped_camSize); }
// // C++: static Ptr_SinusoidalPattern cv::structured_light::SinusoidalPattern::create(Ptr_SinusoidalPattern_Params parameters = makePtr<SinusoidalPattern::Params>()) // //javadoc: SinusoidalPattern::create() public static SinusoidalPattern create() { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER SinusoidalPattern retVal = SinusoidalPattern.__fromPtr__(structured_1light_SinusoidalPattern_create_10()); return(retVal); #else return(null); #endif }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_patternImages = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(patternImages, wrapped_patternImages); if (!(wrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("wrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_wrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(wrappedPhaseMap); if (!(shadowMask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("shadowMask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_shadowMask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(shadowMask); if (!(fundamental.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("fundamental is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_fundamental = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(fundamental); wrapped_owner.computePhaseMap(wrapped_patternImages, wrapped_wrappedPhaseMap, wrapped_shadowMask, wrapped_fundamental); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_patternImages, patternImages); }
// // C++: static Ptr_SinusoidalPattern cv::structured_light::SinusoidalPattern::create(Ptr_SinusoidalPattern_Params parameters = makePtr<SinusoidalPattern::Params>()) // /** * Constructor. * * return automatically generated */ public static SinusoidalPattern create() { return(SinusoidalPattern.__fromPtr__(structured_1light_SinusoidalPattern_create_10())); }
public SinusoidalPattern(OpenCVForUnity.Structured_lightModule.SinusoidalPattern nativeObj) : base(nativeObj) { }