/// <summary> /// Create a new multiple strategy and set one subtrategy /// </summary> /// <param name="s1">The first strategy</param> /// <param name="s2">The second strategy</param> /// <param name="s3">The third strategy</param> /// <param name="s4">The forth strategy</param> /// <returns></returns> public static SelectiveSearchSegmentationStrategyMultiple Create( SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3, SelectiveSearchSegmentationStrategy s4) { if (s1 == null) { throw new ArgumentNullException(nameof(s1)); } var p = NativeMethods.ximgproc_segmentation_createSelectiveSearchSegmentationStrategyMultiple4(s1.CvPtr, s2.CvPtr, s3.CvPtr, s4.CvPtr); return(new SelectiveSearchSegmentationStrategyMultiple(p)); }
/// <summary> /// Create a new multiple strategy and set one subtrategy /// </summary> /// <param name="s1">The first strategy</param> /// <param name="s2">The second strategy</param> /// <param name="s3">The third strategy</param> /// <returns></returns> public static SelectiveSearchSegmentationStrategyMultiple Create( SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3) { if (s1 == null) { throw new ArgumentNullException(nameof(s1)); } if (s2 == null) { throw new ArgumentNullException(nameof(s2)); } if (s3 == null) { throw new ArgumentNullException(nameof(s3)); } NativeMethods.HandleException( NativeMethods.ximgproc_segmentation_createSelectiveSearchSegmentationStrategyMultiple3(s1.CvPtr, s2.CvPtr, s3.CvPtr, out var p)); return(new SelectiveSearchSegmentationStrategyMultiple(p)); }