Class IM3Reader.FloatIM3Record

java.lang.Object
loci.formats.in.IM3Reader.IM3Record
loci.formats.in.IM3Reader.FloatIM3Record
Enclosing class:
IM3Reader

protected static class IM3Reader.FloatIM3Record extends IM3Reader.IM3Record
Author:
Lee Kamentsky A 4-byte floating point array record The record format is int32 - unknown int32 - # of floats float32s - values
  • Constructor Summary

    Constructors
    Constructor
    Description
    FloatIM3Record(String name, int recType, long offset, int recLength)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    getEntries(loci.common.IRandomAccess is)
    Return all entries as an array
    float
    getEntry(loci.common.IRandomAccess is, int index)
    Get the floating-point value at the given index
    int
    getNumEntries(loci.common.IRandomAccess is)
    Get the # of floating-point values in this record
    void
    writeSummary(loci.common.IRandomAccess is, String indentation)
    Write a summary of the contents of the record

    Methods inherited from class loci.formats.in.IM3Reader.IM3Record

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FloatIM3Record

      public FloatIM3Record(String name, int recType, long offset, int recLength)
  • Method Details

    • getNumEntries

      public int getNumEntries(loci.common.IRandomAccess is) throws IOException
      Get the # of floating-point values in this record
      Returns:
      number of integer values contained in the record
      Throws:
      IOException
    • getEntry

      public float getEntry(loci.common.IRandomAccess is, int index) throws IOException
      Get the floating-point value at the given index
      Parameters:
      is - the stream for the IM3 file
      index - the zero-based index of the entry to retrieve
      Returns:
      the value stored in the indexed slot of the record
      Throws:
      IOException
    • getEntries

      public float[] getEntries(loci.common.IRandomAccess is) throws IOException
      Return all entries as an array
      Parameters:
      is - handle to file
      Returns:
      an array of the stored values
      Throws:
      IOException
    • writeSummary

      public void writeSummary(loci.common.IRandomAccess is, String indentation) throws IOException
      Description copied from class: IM3Reader.IM3Record
      Write a summary of the contents of the record
      Overrides:
      writeSummary in class IM3Reader.IM3Record
      Throws:
      IOException