// // C++: void cv::ShapeContextDistanceExtractor::setCostExtractor(Ptr_HistogramCostExtractor comparer) // //javadoc: ShapeContextDistanceExtractor::setCostExtractor(comparer) public void setCostExtractor(HistogramCostExtractor comparer) { ThrowIfDisposed(); if (comparer != null) { comparer.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER shape_ShapeContextDistanceExtractor_setCostExtractor_10(nativeObj, comparer.getNativeObjAddr()); return; #else return; #endif }
//javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer) public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor(int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, HistogramCostExtractor comparer) { if (comparer != null) { comparer.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_11(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer.getNativeObjAddr())); return(retVal); #else return(null); #endif }