void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.CLAHE)) { LogError("owner is not initialized. Add Action \"newCLAHE\"."); return; } OpenCVForUnity.ImgprocModule.CLAHE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.CLAHE, OpenCVForUnity.ImgprocModule.CLAHE>(owner); wrapped_owner.setTilesGridSize(new OpenCVForUnity.CoreModule.Size((double)tileGridSize_width.Value, (double)tileGridSize_height.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.CLAHE)) { LogError("owner is not initialized. Add Action \"newCLAHE\"."); return; } OpenCVForUnity.ImgprocModule.CLAHE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.CLAHE, OpenCVForUnity.ImgprocModule.CLAHE>(owner); if (!(tileGridSize.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("tileGridSize is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_tileGridSize = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(tileGridSize); wrapped_owner.setTilesGridSize(wrapped_tileGridSize); }