Class RawToDicomMultiFrame

java.lang.Object
com.pixelmed.convert.RawToDicomMultiFrame

public class RawToDicomMultiFrame extends Object

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

  • Constructor Details

  • Method Details

    • generateDICOMPixelDataModuleAttributesFromNRRDFile

      public static AttributeList generateDICOMPixelDataModuleAttributesFromNRRDFile(File inputFile, RawImageDescription rawImageDesc, AttributeList list) throws IOException, DicomException, NumberFormatException

      Using a raw image input file and header, create DICOM Pixel Data Module attributes.

      Parameters:
      inputFile - a raw format image file
      rawImageDesc - a raw image description 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
      NumberFormatException
    • main

      public static void main(String[] arg)

      Read a raw multiframe image input format file and create an image of a specified or appropriate SOP Class.

      If multiple single frame raw images are to be converted, first cat them together in the correct order.

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