int getChannelIndex() { int channels = getNChannels(); if (lut==null) setupLuts(channels); int index = getChannel()-1; return index; }
protected void transferChannelSettings( final CompositeImage ci, final SetupAssignments setupAssignments, final VisibilityAndGrouping visibility ) { final int nChannels = ci.getNChannels(); final int mode = ci.getCompositeMode(); final boolean transferColor = mode == IJ.COMPOSITE || mode == IJ.COLOR; for ( int c = 0; c < nChannels; ++c ) { final LUT lut = ci.getChannelLut( c + 1 ); final ConverterSetup setup = setupAssignments.getConverterSetups().get( c ); if ( transferColor ) setup.setColor( new ARGBType( lut.getRGB( 255 ) ) ); setup.setDisplayRange( lut.min, lut.max ); } if ( mode == IJ.COMPOSITE ) { final boolean[] activeChannels = ci.getActiveChannels(); visibility.setDisplayMode( DisplayMode.FUSED ); for ( int i = 0; i < activeChannels.length; ++i ) visibility.setSourceActive( i, activeChannels[ i ] ); } else visibility.setDisplayMode( DisplayMode.SINGLE ); visibility.setCurrentSource( ci.getChannel() - 1 ); }
int getChannelIndex() { int channels = getNChannels(); if (lut==null) setupLuts(channels); int index = getChannel()-1; return index; }
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 ThumbnailsCanvas(ImagePlus imp) { if (!imp.isComposite()) { return; } cImp = (CompositeImage) imp; addMouseListener(this); addMouseMotionListener(this); currentChannel = cImp.getChannel(); currentSlice = cImp.getSlice(); currentFrame = cImp.getFrame(); channelUnderCursor = currentChannel; int ww = cImp.getWidth(); int hh = cImp.getHeight(); if (ww > hh) { iconHeight = iconWidth * hh / ww; dy = (iconWidth - iconHeight) / 2; } if (ww < hh) { iconWidth = iconHeight * ww / hh; dx = (iconHeight - iconWidth) / 2; } nChannels = cImp.getNChannels(); seq = seq.substring(0, nChannels); setSize((nChannels + 1) * iconSize, 2 * iconSize + 30); }
public ThumbnailsCanvas(ImagePlus imp) { if (!imp.isComposite()) { return; } cImp = (CompositeImage) imp; addMouseListener(this); addMouseMotionListener(this); currentChannel = cImp.getChannel(); currentSlice = cImp.getSlice(); currentFrame = cImp.getFrame(); channelUnderCursor = currentChannel; int ww = cImp.getWidth(); int hh = cImp.getHeight(); if (ww > hh) { iconHeight = iconWidth * hh / ww; dy = (iconWidth - iconHeight) / 2; } if (ww < hh) { iconWidth = iconHeight * ww / hh; dx = (iconHeight - iconWidth) / 2; } nChannels = cImp.getNChannels(); seq = seq.substring(0, nChannels); setSize((nChannels + 1) * iconSize, 2 * iconSize + 30); }
CompositeImage cimp = (CompositeImage)imp; cimp.setMode(IJ.COLOR); int saveC = cimp.getChannel(); IndexColorModel cm = new IndexColorModel(8, 256, fi.reds, fi.greens, fi.blues); for (int c=1; c<=cimp.getNChannels(); c++) {
CompositeImage cimp = (CompositeImage)imp; cimp.setMode(IJ.COLOR); int saveC = cimp.getChannel(); IndexColorModel cm = new IndexColorModel(8, 256, fi.reds, fi.greens, fi.blues); for (int c=1; c<=cimp.getNChannels(); c++) {
slices1 = slices2 = imp.getNSlices(); frames1 = frames2 = imp.getNFrames(); int c1 = imp.getChannel(); int z1 = imp.getSlice(); int t2 = imp.getFrame();
slices1 = slices2 = imp.getNSlices(); frames1 = frames2 = imp.getNFrames(); int c1 = imp.getChannel(); int z1 = imp.getSlice(); int t2 = imp.getFrame();
int c = imp.getChannel(); int n = imp.getNChannels(); for (int i=1; i<=n; i++) {
int c = imp.getChannel(); int n = imp.getNChannels(); for (int i=1; i<=n; i++) {
int nChannels = getNChannels(); int redValue, greenValue, blueValue; int ch = getChannel();
int nChannels = getNChannels(); int redValue, greenValue, blueValue; int ch = getChannel();