示例#1
0
        public void Normalize()
        {
            Plate clone1 = Clone();

            clone1.VerticalEdgeDetector(clone1.GetBitmap());
            PlateVerticalGraph vertical = clone1.HistogramYaxis(clone1.GetBitmap());

            Image           = CutTopBottom(Image, vertical);
            PlateCopy.Image = CutTopBottom(PlateCopy.Image, vertical);

            Plate clone2 = Clone();

            if (HorizontalDetectionType == 1)
            {
                clone2.HorizontalEdgeDetector(clone2.GetBitmap());
            }
            PlateHorizontalGraph horizontal = clone1.HistogramXAxis(clone2.GetBitmap());

            Image           = CutLeftRight(Image, horizontal);
            PlateCopy.Image = CutLeftRight(PlateCopy.Image, horizontal);
        }
 public PlateHorizontalGraph(Plate plate)
 {
     handle = plate;
 }
示例#3
0
 public Plate(Bitmap bitmap) : base(bitmap)
 {
     PlateCopy = new Plate(DuplicateBitmap(Image), true);
     PlateCopy.AdaptiveThresholding();
 }
示例#4
0
 public PlateGraph(Plate handle)
 {
     this.handle = handle;
 }
示例#5
0
 public PlateVerticalGraph(Plate plate)
 {
     handle = plate;
 }