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"; };
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).
filename
Contains the filename and path of the ACR NEMA file to be read into AVS/Express.
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.
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.
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
iac_proj/read_acr/acr_mods.v contains the read_acr_nema module V definitions.
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.
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
May. 12, 1995
J. Leng April 1998
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester UK M13 9PL
Read_acr_nema.