/** * Retrieves a specified channel's global maximum. * Returns null if some of the image planes have not been read. * @throws IOException Not actually thrown. */ public Double getChannelGlobalMaximum(int theC) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (theC < 0 || theC >= getSizeC()) { throw new FormatException("Invalid channel index: " + theC); } int series = getCoreIndex(); // check that all planes have been read if (minMaxDone == null || minMaxDone[series] < getImageCount()) { return null; } return new Double(chanMax[series][theC]); }
/** * Retrieves a specified channel's global minimum. * Returns null if some of the image planes have not been read. * * @throws IOException Not actually thrown. */ public Double getChannelGlobalMinimum(int theC) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (theC < 0 || theC >= getSizeC()) { throw new FormatException("Invalid channel index: " + theC); } int series = getCoreIndex(); // check that all planes have been read if (minMaxDone == null || minMaxDone[series] < getImageCount()) { return null; } return new Double(chanMin[series][theC]); }
/** * Retrieves a specified channel's global maximum. * Returns null if some of the image planes have not been read. * @throws IOException Not actually thrown. */ public Double getChannelGlobalMaximum(int theC) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (theC < 0 || theC >= getSizeC()) { throw new FormatException("Invalid channel index: " + theC); } int series = getCoreIndex(); // check that all planes have been read if (minMaxDone == null || minMaxDone[series] < getImageCount()) { return null; } return new Double(chanMax[series][theC]); }
/** * Retrieves a specified channel's global minimum. * Returns null if some of the image planes have not been read. * * @throws IOException Not actually thrown. */ public Double getChannelGlobalMinimum(int theC) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (theC < 0 || theC >= getSizeC()) { throw new FormatException("Invalid channel index: " + theC); } int series = getCoreIndex(); // check that all planes have been read if (minMaxDone == null || minMaxDone[series] < getImageCount()) { return null; } return new Double(chanMin[series][theC]); }
for (int c=0; c<getSizeC(); c++) { minMaxStore.setChannelGlobalMinMax(c, chanMin[getCoreIndex()][c], chanMax[getCoreIndex()][c], getSeries());
for (int c=0; c<getSizeC(); c++) { minMaxStore.setChannelGlobalMinMax(c, chanMin[getCoreIndex()][c], chanMax[getCoreIndex()][c], getSeries());