public ImageProcessor getChannelProcessor() { if (cip!=null && currentChannel!=-1) return cip[currentChannel]; else return getProcessor(); }
public ImageProcessor getChannelProcessor() { if (cip!=null && currentChannel!=-1) return cip[currentChannel]; else return getProcessor(); }
void stretchCompositeImageHistogram(CompositeImage imp, double saturated, ImageStatistics stats) { ImageProcessor ip = imp.getProcessor(); int[] a = getMinAndMax(ip, saturated, stats); int hmin=a[0], hmax=a[1];
void stretchCompositeImageHistogram(CompositeImage imp, double saturated, ImageStatistics stats) { ImageProcessor ip = imp.getProcessor(); int[] a = getMinAndMax(ip, saturated, stats); int hmin=a[0], hmax=a[1];
cImp.setPositionWithoutUpdate(chn, currentSlice, currentFrame); cImp.updateImage(); ipSmall = cImp.getProcessor().resize(iconWidth, iconHeight, true); bImg = ipSmall.getBufferedImage(); int index = chn - 1;
cImp.setPositionWithoutUpdate(chn, currentSlice, currentFrame); cImp.updateImage(); ipSmall = cImp.getProcessor().resize(iconWidth, iconHeight, true); bImg = ipSmall.getBufferedImage(); int index = chn - 1;
public synchronized void setChannelLut(LUT table, int channel) { int channels = getNChannels(); if (lut==null) setupLuts(channels); if (channel<1 || channel>lut.length) throw new IllegalArgumentException("Channel out of range"); lut[channel-1] = (LUT)table.clone(); if (getWindow()!=null && channel==getChannel()) getProcessor().setLut(lut[channel-1]); if (cip!=null && cip.length>=channel && cip[channel-1]!=null) cip[channel-1].setLut(lut[channel-1]); else cip = null; customLuts = true; }
public synchronized void setChannelLut(LUT table, int channel) { int channels = getNChannels(); if (lut==null) setupLuts(channels); if (channel<1 || channel>lut.length) throw new IllegalArgumentException("Channel out of range"); lut[channel-1] = (LUT)table.clone(); if (getWindow()!=null && channel==getChannel()) getProcessor().setLut(lut[channel-1]); if (cip!=null && cip.length>=channel && cip[channel-1]!=null) cip[channel-1].setLut(lut[channel-1]); else cip = null; customLuts = true; }
public void setChannelLut(LUT table) { int c = getChannelIndex(); double min = lut[c].min; double max = lut[c].max; lut[c] = table; lut[c].min = min; lut[c].max = max; if (mode==COMPOSITE && cip!=null && c<cip.length) { cip[c].setColorModel(lut[c] ); imageSource = null; newPixels = true; img = null; } currentChannel = -1; getProcessor().setLut(table); customLuts = true; if (!IJ.isMacro()) ContrastAdjuster.update(); }
public void setChannelLut(LUT table) { int c = getChannelIndex(); double min = lut[c].min; double max = lut[c].max; lut[c] = table; lut[c].min = min; lut[c].max = max; if (mode==COMPOSITE && cip!=null && c<cip.length) { cip[c].setColorModel(lut[c] ); imageSource = null; newPixels = true; img = null; } currentChannel = -1; getProcessor().setLut(table); customLuts = true; if (!IJ.isMacro()) ContrastAdjuster.update(); }
for (int c = 0; c < channelCount; c++) { final ImageProcessor ip = ci.getProcessor(c + 1); if (ip != null) {
ImageProcessor ip = getProcessor(); if (mode!=COMPOSITE) { if (newChannel) { getProcessor().setMinAndMax(cip[currentChannel].getMin(), cip[currentChannel].getMax()); if (!IJ.isMacro()) ContrastAdjuster.update(); if (cip==null) return; if (syncChannels) { ImageProcessor ip2 = getProcessor(); double min=ip2.getMin(), max=ip2.getMax(); for (int i=0; i<nChannels; i++) {
ImageProcessor ip = getProcessor(); if (mode!=COMPOSITE) { if (newChannel) { getProcessor().setMinAndMax(cip[currentChannel].getMin(), cip[currentChannel].getMax()); if (!IJ.isMacro()) ContrastAdjuster.update(); if (cip==null) return; if (syncChannels) { ImageProcessor ip2 = getProcessor(); double min=ip2.getMin(), max=ip2.getMax(); for (int i=0; i<nChannels; i++) {