Class AnalyzeToDicom

java.lang.Object
com.pixelmed.convert.AnalyzeToDicom

public class AnalyzeToDicom extends Object

A class for converting Analyze image input format files into images of a specified or appropriate SOP Class.

  • Constructor Details

  • Method Details

    • generateGeometryFunctionalGroupsFromAnalyzeHeader

      public static AttributeList generateGeometryFunctionalGroupsFromAnalyzeHeader(AnalyzeHeader analyze, AttributeList list, int numberOfFrames) throws DicomException

      Read a per-frame and shared functional group sequences for the geometry defined in a Analyze file header.

      Parameters:
      analyze - an Analyze header
      list - an existing (possibly empty) attribute list, if null, a new one will be created; may already shared and per-frame functional group sequences or they will be added
      numberOfFrames - return attribute list with per-frame and shared functional group sequences for geometry added
      Throws:
      DicomException
    • generateDICOMPixelDataModuleAttributesFromAnalyzeFile

      public static AttributeList generateDICOMPixelDataModuleAttributesFromAnalyzeFile(File inputFile, AnalyzeHeader analyze, AttributeList list) throws IOException, DicomException, AnalyzeException

      Using an Analyze image input file and header, create DICOM Pixel Data Module attributes.

      Parameters:
      inputFile - an Analyze format image file
      analyze - an Analyze header already read from the inputFile
      list - an existing (possibly empty) attribute list, if null, a new one will be created; may already include "better" image pixel module attributes to use return attribute list with Image Pixel Module (including Pixel Data) and other attributes added
      Throws:
      IOException
      DicomException
      AnalyzeException
    • main

      public static void main(String[] arg)

      Read an Analyze image input format files and create an image of a specified or appropriate SOP Class.

      Parameters:
      arg - seven, eight or nine parameters, the inputFile, outputFile, patientName, patientID, studyID, seriesNumber, instanceNumber, and optionally the modality, and SOP Class