Class ReadPhysicalSize

java.lang.Object
ReadPhysicalSize

public class ReadPhysicalSize extends Object
Example class that shows how to read and convert the physical X, Y and Z dimensions of a file Bio-Formats version 5.1 or later.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    To read the physical size dimensions and units of a file and display them in micrometers: $ java ReadPhysicalSize input-file.ome.tiff
    static void
    Reads the physical dimensions of the input file provided then converts and displays them in micrometers

    Methods inherited from class java.lang.Object

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

    • ReadPhysicalSize

      public ReadPhysicalSize()
  • Method Details

    • readPhysicalSize

      public static void readPhysicalSize(String inputFile) throws loci.formats.FormatException, IOException
      Reads the physical dimensions of the input file provided then converts and displays them in micrometers
      Parameters:
      inputFile - the file to be read
      Throws:
      loci.formats.FormatException - if a parsing error occurs processing the file.
      IOException - if an I/O error occurs processing the file
    • main

      public static void main(String[] args) throws Exception
      To read the physical size dimensions and units of a file and display them in micrometers: $ java ReadPhysicalSize input-file.ome.tiff
      Parameters:
      args - Input file.
      Throws:
      loci.formats.FormatException - if a parsing error occurs processing the file.
      IOException - if an I/O error occurs processing the file
      Exception