Exemple #1
0
 public static extern void cvExtractMSER(IntPtr img, IntPtr mask, ref IntPtr contours, IntPtr storage, WCvMSERParams @params);
        /// <summary>
        /// MSERのパラメータを生成する
        /// </summary>
        /// <param name="delta">delta, in the code, it compares (size_{i}-size_{i-delta})/size_{i-delta}</param>
        /// <param name="min_area">prune the area which smaller than min_area</param>
        /// <param name="max_area">prune the area which bigger than max_area</param>
        /// <param name="max_variation">prune the area have simliar size to its children</param>
        /// <param name="min_diversity">trace back to cut off mser with diversity &lt; min_diversity</param>
        /// <param name="max_evolution">for color image, the evolution steps</param>
        /// <param name="area_threshold">the area threshold to cause re-initialize</param>
        /// <param name="min_margin">ignore too small margin</param>
        /// <param name="edge_blur_size">the aperture size for edge blur</param>
#else
        /// <summary>
        /// Creates MSER parameters
        /// </summary>
        /// <param name="delta">delta, in the code, it compares (size_{i}-size_{i-delta})/size_{i-delta}</param>
        /// <param name="min_area">prune the area which smaller than min_area</param>
        /// <param name="max_area">prune the area which bigger than max_area</param>
        /// <param name="max_variation">prune the area have simliar size to its children</param>
        /// <param name="min_diversity">trace back to cut off mser with diversity &lt; min_diversity</param>
        /// <param name="max_evolution">for color image, the evolution steps</param>
        /// <param name="area_threshold">the area threshold to cause re-initialize</param>
        /// <param name="min_margin">ignore too small margin</param>
        /// <param name="edge_blur_size">the aperture size for edge blur</param>
#endif
        public CvMSERParams(int delta, int min_area, int max_area, float max_variation, float min_diversity, int max_evolution, double area_threshold, double min_margin, int edge_blur_size)
        {
            _p = CvInvoke.cvMSERParams(delta, min_area, max_area, max_variation, min_diversity, max_evolution, area_threshold, min_margin, edge_blur_size);
        }