Package ij.gui

Examples of ij.gui.Overlay


  }
 
  byte[][] getOverlay(ImagePlus imp) {
    if (imp.getHideOverlay())
      return null;
    Overlay overlay = imp.getOverlay();
    if (overlay==null) {
      ImageCanvas ic = imp.getCanvas();
      if (ic==null) return null;
      overlay = ic.getShowAllList(); // ROI Manager "Show All" list
      if (overlay==null) return null;
    }
    int n = overlay.size();
    if (n==0) return null;
    if (Orthogonal_Views.isOrthoViewsImage(imp))
      return null;
    byte[][] array = new byte[n][];
    for (int i=0; i<overlay.size(); i++) {
      Roi roi = overlay.get(i);
      array[i] = RoiEncoder.saveAsByteArray(roi);
    }
    return array;
  }
View Full Code Here

TOP

Related Classes of ij.gui.Overlay

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.