Пример #1
0
  public static void addOrthoslice(
      String image, String c, String name, String r, String g, String b, String resamplingF) {

    Image3DUniverse univ = getUniv();
    ImagePlus grey = WindowManager.getImage(image);
    Color3f color = ColorTable.getColor(c);

    int factor = getInt(resamplingF);
    boolean[] channels = new boolean[] {getBoolean(r), getBoolean(g), getBoolean(b)};
    univ.addOrthoslice(grey, color, name, 0, channels, factor);
  }
Пример #2
0
  // Contents menu
  public static void add(
      String image,
      String c,
      String name,
      String th,
      String r,
      String g,
      String b,
      String resamplingF,
      String type) {

    Image3DUniverse univ = getUniv();
    ImagePlus grey = WindowManager.getImage(image);
    Color3f color = ColorTable.getColor(c);

    int factor = getInt(resamplingF);
    int thresh = getInt(th);
    boolean[] channels = new boolean[] {getBoolean(r), getBoolean(g), getBoolean(b)};
    int ty = getInt(type);
    univ.addContent(grey, color, name, thresh, channels, factor, ty);
  }
 protected void paint(Graphics g) {
   _colorTable.paint(g);
 }
 protected void drawFocus(Graphics g, boolean on) {
   _colorTable.drawFocus(g, on);
 }
 public void setColorTableData(LongIntHashtable colorTableData) {
   _colorTable.setColorTableData(colorTableData);
   invalidate();
 }