Package jjil.debug

Examples of jjil.debug.Debug.toFile()


    {
      {
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(image);
        Debug debug = new Debug();
        debug.toFile((RgbImage) g2r.getFront(), "barcode.png"); //$NON-NLS-1$
      }
        this.chLeft = new CodeHash();
        this.chRight = new CodeHash();
        int cPixelsPerBar = image.getWidth() / TotalWidth;
        int wSumLeftEdge = 0;
View Full Code Here


    {
      {
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(image);
        Debug debug = new Debug();
        debug.toFile((RgbImage) g2r.getFront(), "barcode.png"); //$NON-NLS-1$
      }
        this.chLeft = new CodeHash();
        this.chRight = new CodeHash();
        this.chBarCodes = new CodeHash();
        int wSumLeftEdge = 0;
View Full Code Here

    Image imThresh = seq.getFront();
    Gray8Rgb g2r = new Gray8Rgb();
    g2r.push(imThresh);
    if (DetectBarcode.bDebug) {
      Debug debug = new Debug();
      debug.toFile((RgbImage)g2r.getFront(), "test.jpg");
    }
    gcc.push(imThresh);
    if (gcc.getComponentCount() == 0) {
      return false;
    }
View Full Code Here

        this.imageCropped = (Gray8Image) imageResult;
        {   Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(this.imageCropped);
          RgbImage rgb = (RgbImage) g2r.getFront();
          debug.toFile(rgb, "cropped.png"); //$NON-NLS-1$
        }
        /* Then do edge detection. The cWidth of the Canny operator is set
         * based on the cropped cWidth, which is supposed to be the
         * barcode cWidth.
         */
 
View Full Code Here

        {  
          Debug debug = new Debug();
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(this.imageEdge);
        RgbImage rgb = (RgbImage) g2r.getFront();
        debug.toFile(rgb, "edges.png"); //$NON-NLS-1$
      }
    }
   
    private static Image cropAndStretchImage(
            Image imageInput,
View Full Code Here

        this.wSlopeRight = fit.getSlope();
        {
          Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(this.imageEdge);
          debug.toFile((RgbImage) g2r.getFront(), "edges.png"); //$NON-NLS-1$
        }
        return true;
     }
   
    private void findPreciseBarcodeLimits()
View Full Code Here

        }
        {
          Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(imageResult);
          debug.toFile((RgbImage) g2r.getFront(), "rectified.png"); //$NON-NLS-1$
        }
        this.imageRectified = (Gray8Image) imageResult;
    }
   
    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.