Package ij.measure

Examples of ij.measure.Calibration


    if (count<2) {
      IJ.error("There must be at least two open images.");
      return;
    }

    Calibration cal2 = image[0].getCalibration();
    for (int i=0; i<(count-1); i++) {
      if (image[i].getType()!=image[i+1].getType()) {
        IJ.error("All open images must be the same type.");
        return;
      }
      if (image[i].getWidth()!=image[i+1].getWidth()
      || image[i].getHeight()!=image[i+1].getHeight()) {
        IJ.error("All open images must be the same size.");
        return;
      }
      Calibration cal = image[i].getCalibration();
      if (!image[i].getCalibration().equals(cal2))
        cal2 = null;
    }
   
    int width = image[0].getWidth();
View Full Code Here


      "Are you sure you want to convert this\nstack to "
      +size+" separate windows?");
      if (!ok)
        {imp.unlock(); return;}
    }
    Calibration cal = imp.getCalibration();
    CompositeImage cimg = imp.isComposite()?(CompositeImage)imp:null;
    if (imp.getNChannels()!=imp.getStackSize()) cimg = null;
    for (int i=1; i<=size; i++) {
      String label = stack.getShortSliceLabel(i);
      String title = label!=null&&!label.equals("")?label:getTitle(imp, i);
View Full Code Here

TOP

Related Classes of ij.measure.Calibration

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.