private LUT[] getLuts() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null || imp.getBitDepth()!=16 || !imp.isComposite()) return null; return ((CompositeImage)imp).getLuts(); }
private LUT[] getLuts() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null || imp.getBitDepth()!=16 || !imp.isComposite()) return null; return ((CompositeImage)imp).getLuts(); }
/** Copies the LUTs and display mode of 'imp' to this image. Does nothing if 'imp' is not a CompositeImage or 'imp' and this image do not have the same number of channels. */ public synchronized void copyLuts(ImagePlus imp) { int channels = getNChannels(); if (!imp.isComposite() || imp.getNChannels()!=channels) return; CompositeImage ci = (CompositeImage)imp; LUT[] luts = ci.getLuts(); if (luts!=null && luts.length==channels) { lut = luts; cip = null; } int mode2 = ci.getMode(); setMode(mode2); if (mode2==COMPOSITE) { boolean[] active2 = ci.getActiveChannels(); for (int i=0; i<MAX_CHANNELS; i++) active[i] = active2[i]; } if (ci.hasCustomLuts()) customLuts = true; }
/** Copies the LUTs and display mode of 'imp' to this image. Does nothing if 'imp' is not a CompositeImage or 'imp' and this image do not have the same number of channels. */ public synchronized void copyLuts(ImagePlus imp) { int channels = getNChannels(); if (!imp.isComposite() || imp.getNChannels()!=channels) return; CompositeImage ci = (CompositeImage)imp; LUT[] luts = ci.getLuts(); if (luts!=null && luts.length==channels) { lut = luts; cip = null; } int mode2 = ci.getMode(); setMode(mode2); if (mode2==COMPOSITE) { boolean[] active2 = ci.getActiveChannels(); for (int i=0; i<MAX_CHANNELS; i++) active[i] = active2[i]; } if (ci.hasCustomLuts()) customLuts = true; }
} else if (choice.equals("channel")) { // delete channe c1 if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); int index = imp.getStackIndex(c1, slices, frames); while (index>0) {
} else if (choice.equals("channel")) { // delete channe c1 if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); int index = imp.getStackIndex(c1, slices, frames); while (index>0) {
dim = imp.getDimensions(); if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); if (firstTime && ndigits==4) { ndigits = 3;
dim = imp.getDimensions(); if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); if (firstTime && ndigits==4) { ndigits = 3;
LUT[] luts = ci.getLuts(); min[c] = luts[c].min; max[c] = luts[c].max;
} else if (choice.equals("channel")) { // add channel if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); int index = imp.getStackIndex(c1, slices, frames); int minIndex = 1;
} else if (choice.equals("channel")) { // add channel if (imp.isComposite()) luts = ((CompositeImage)imp).getLuts(); int index = imp.getStackIndex(c1, slices, frames); int minIndex = 1;
if (((CompositeImage)imp).getMode()!=((CompositeImage)this).getMode()) ((CompositeImage)this).setMode(((CompositeImage)imp).getMode()); luts = ((CompositeImage)imp).getLuts();
if (((CompositeImage)imp).getMode()!=((CompositeImage)this).getMode()) ((CompositeImage)this).setMode(((CompositeImage)imp).getMode()); luts = ((CompositeImage)imp).getLuts();
int inc = nSlices/20; if (inc<1) inc = 1; LUT[] luts = composite?((CompositeImage)imp).getLuts():null; for(int i=1; i<=nSlices; i++) { label = stack1.getSliceLabel(1);
int inc = nSlices/20; if (inc<1) inc = 1; LUT[] luts = composite?((CompositeImage)imp).getLuts():null; for(int i=1; i<=nSlices; i++) { label = stack1.getSliceLabel(1);