Package loci.formats.in
Class IM3Reader.Spectrum
java.lang.Object
loci.formats.in.IM3Reader.Spectrum
- Enclosing class:
IM3Reader
- Author:
- Lee Kamentsky Represents a Spectrum record within a SpectralLibrary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpectrum(loci.common.IRandomAccess is, IM3Reader.ContainerRecord rec) Construct a spectrum by parsing a Spectrum record -
Method Summary
Modifier and TypeMethodDescriptionfloat[]getName()float[]private voidparseSpectrumRecord(loci.common.IRandomAccess is, IM3Reader.ContainerRecord rec) Parse the spectrum record
-
Field Details
-
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 parsedrec- the container record grouping the spectrum's record- Throws:
IOException
-
-
Method Details
-
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 handlerec- the spectrum container record- Throws:
IOException
-