read_acr_nema

Synopsis

Reads ACR NEMA file format, type SPI so the data can be put into AVS field type. The resulting field is a unifrom scalar 2D field.


    module read_acr_nema <src_file="read_acr.c",weight=0> {
	 string filename<NEportLevels={2,1}>;
	 short short_array<NEportLevels={1,2}>[];
	 int dims_out<NEportLevels={1,2}>[];
         omethod+notify_inst+req update(
		filename+read+notify+req,
		short_array+write,
		dims_out+write
         ) = "read_acr";
      };

Description

The read ACR-NEMA module reads ACR-NEMA SPI data files and converts them into AVS field format. SPI is a standard based on the old ACR/NEMA standard used by Siemens and Philips. SPI make use of ACR/NEMA data elements and groups. SPI store the integer in little endian format (Least Significant before Most Significant).

Inputs

filename

Contains the filename and path of the ACR NEMA file to be read into AVS/Express.

Outputs

short_array

An array of data values to be used in the final module to create the scalar data of the 2D scalar field. This is an array of shorts.

dims_out

A two dimensional integer array holding the dimensions of the 2D image.

Utility Macros

The UI_acr_nema macro holds the User Interface for the module and the Read_acr_nema macro holds the full macro with the user interface connected to the read_acr_nema. The user interface passes the filename to read_acr_nema. The outputs of read_acr_nema are passed into a uniform_scalar_field object to produce a suitable field.

Example

An example application Read_ACR_NEMA_Eg is provided, which reads in the provided acr nema file. Details of this file are given below.

image.acr-nema:- this is a test image in ACR-NEAM SPI from Philips MR

This image displays a section of a Pig's Heart

Files

iac_proj/read_acr/acr_mods.v contains the read_acr_nema module V definitions.

Other Notes

The module prints information about the file (scanning modality, resolution, patient information) to the standard output while the file header is being read.

The low-level library ACR_NEMA_Mods, which needs to be compiled, does not specify a process. By default it will be set to the express process.

Author

        Andrea Marchetti
        Istituto di Elaborazione dell'Informazione del CNR
        Via S. Maria, 46 - 56100 Pisa
        Ph. +39 50 593420  Fax +39 50 593503  
        e-mail andrea@www-sei.iei.pi.cnr.it
        www    http://www-sei.iei.pi.cnr.it/~andrea/home.html

Date

May. 12, 1995

Modifications

J. Leng April 1998

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
UK
M13 9PL

See Also

Read_acr_nema.