Class IM3Reader.Spectrum

java.lang.Object
loci.formats.in.IM3Reader.Spectrum
Enclosing class:
IM3Reader

public static class IM3Reader.Spectrum extends Object
Author:
Lee Kamentsky Represents a Spectrum record within a SpectralLibrary
  • Field Details

    • name

      private String name
    • wavelengths

      private float[] wavelengths
    • magnitudes

      private float[] magnitudes
  • Constructor Details

    • Spectrum

      Spectrum(loci.common.IRandomAccess is, IM3Reader.ContainerRecord rec) throws IOException
      Construct a spectrum by parsing a Spectrum record
      Parameters:
      is - file handle to the file being parsed
      rec - the container record grouping the spectrum's record
      Throws:
      IOException
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of this spectrum or null if unnamed
    • getWavelengths

      public float[] getWavelengths()
      Returns:
      the wavelengths for each of the spectral bins
    • getMagnitudes

      public float[] getMagnitudes()
      Returns:
      the magnitudes of the signals for each of the spectral bins
    • parseSpectrumRecord

      private void parseSpectrumRecord(loci.common.IRandomAccess is, IM3Reader.ContainerRecord rec) throws IOException
      Parse the spectrum record
      Parameters:
      is - the file handle
      rec - the spectrum container record
      Throws:
      IOException