Package ij.plugin

Examples of ij.plugin.Straightener


      ip2 = imp.getProcessor();
      saveR = ip2.getRoi();
      ip2.setRoi(roi.getPolygon());
    } else if (lineWidth>1) {
      if ((measurements&AREA)!=0 || (measurements&MEAN)!=0)
        ip2 = (new Straightener()).straightenLine(imp, lineWidth);
      else {
        saveResults(new ImageStatistics(), roi);
        return;
      }
    } else {
View Full Code Here


    return values;
  }

  double[] getWideLineProfile(ImagePlus imp, int lineWidth) {
    Roi roi = (Roi)imp.getRoi().clone();
    ImageProcessor ip2 = (new Straightener()).straightenLine(imp, lineWidth);
    int width = ip2.getWidth();
    int height = ip2.getHeight();
    profile = new double[width];
    double[] aLine;
    ip2.setInterpolate(false);
View Full Code Here

      double[] profile;
      if (getStrokeWidth()==1) {
        ImageProcessor ip = imp.getProcessor();
        profile = ip.getLine(x1d, y1d, x2d, y2d);
      } else {
        ImageProcessor ip2 = (new Straightener()).rotateLine(imp,(int)getStrokeWidth());
        if (ip2==null) return null;
        int width = ip2.getWidth();
        int height = ip2.getHeight();
        profile = new double[width];
        double[] aLine;
View Full Code Here

TOP

Related Classes of ij.plugin.Straightener

Copyright © 2018 www.massapicom. 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.