Example #1
0
        private IplImage CutLeftRight(IplImage origin, PlateHorizontalGraph graph, Int32 method)
        {
            graph.ApplyProbabilityDistributor(new Graph.ProbabilityDistributor(0.0, 0.0, 2, 2));
            List <Graph.Peak> peaks = graph.FindPeak(3, method);

            if (peaks.Count != 0)
            {
                Graph.Peak p = peaks[0];
                return(GetSubImage(origin, new CvRect(p.Left, 0, p.GetDiff, image.Height)));
            }
            else
            {
                return(origin.Clone());
            }
        }