Class LMSMetadataExtractor

java.lang.Object
loci.formats.in.LeicaMicrosystemsMetadata.LMSMetadataExtractor

public class LMSMetadataExtractor extends Object
This class extracts metadata information from Leica Microsystems image XML and stores it in the reader's CoreMetadata and MetadataTempBuffer
Author:
Melissa Linkert melissa at glencoesoftware.com, Constanze Wendlandt constanze.wendlandt at leica-microsystems.com
  • Constructor Details

    • LMSMetadataExtractor

      public LMSMetadataExtractor(LMSFileReader reader)
  • Method Details

    • translateMetadata

      public void translateMetadata(List<LMSImageXmlDocument> docs) throws loci.formats.FormatException, IOException
      Extracts all information from Leica image xml Documents and writes it to reader's CoreMetadata and MetadataTempBuffer
      Parameters:
      docs - list of Leica xml documents
      Throws:
      loci.formats.FormatException
      IOException
    • translateImage

      public void translateImage(Element image, int i) throws loci.formats.FormatException
      Extracts information from element node and writes it to reader's CoreMetadata and MetadataTempBuffer
      Parameters:
      image - node with tag name "element" from Leica XML
      i - image /core index
      Throws:
      loci.formats.FormatException
    • translateChannelDescriptions

      public void translateChannelDescriptions(Element imageNode, int coreIndex) throws loci.formats.FormatException
      Extracts i.a. channel number and luts from channel descriptions and writes it to reader's CoreMetadata and MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      coreIndex -
      Throws:
      loci.formats.FormatException
    • translateAttachmentNodes

      public void translateAttachmentNodes(Element imageNode, int image) throws loci.formats.FormatException
      Extracts information from dimension descriptions and writes it to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateScannerSettings

      public void translateScannerSettings(Element imageNode, int image) throws loci.formats.FormatException
      Extracts scanner information and writes it to reader's CoreMetadata and MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateFilterSettings

      public void translateFilterSettings(Element imageNode, int image) throws loci.formats.FormatException
      Extracts filter information and writes it to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateTimestamps

      public void translateTimestamps(Element imageNode, int image) throws loci.formats.FormatException
      Extracts timestamps and writes them to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateLaserLines

      public void translateLaserLines(Element imageNode, int image) throws loci.formats.FormatException
      Extracts laser information and writes it to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateROIs

      public void translateROIs(Element imageNode, int image) throws loci.formats.FormatException
      Extracts ROIs and writes them to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateSingleROIs

      public void translateSingleROIs(Element imageNode, int image) throws loci.formats.FormatException
      Extracts single ROIs and writes them to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • translateDetectors

      public void translateDetectors(Element imageNode, int image) throws loci.formats.FormatException
      Extracts detector information and writes it to reader's MetadataTempBuffer
      Parameters:
      imageNode - Image node from Leica xml
      image - image / core index
      Throws:
      loci.formats.FormatException
    • parseLong

      public long parseLong(String value)
    • parseInt

      public int parseInt(String value)
    • parseDouble

      public double parseDouble(String value)
    • getChannelIndex

      public static int getChannelIndex(Element filterSetting)