Table of Contents THE ANALYZEAVW IMAGE FILE FORMAT. 1. Organizing a List of DICOM Files page 2

Similar documents
Loading Data into Analyze

IDLffAnalyze Class. Ron Kneusel RSI

JIV : A 3D Image Data Visualization and Comparison Tool. Chris Cocosco

19 CP Remove description of retired Big Endian Transfer syntax

SISCOM (Subtraction Ictal SPECT CO-registered to MRI)

BMP file format - Wikipedia

19 CP Remove description of retired Big Endian Transfer syntax

Introduction to Computer Science (I1100) Data Storage

Appendix B ANALYZE Coordinate System

Transform Introduction page 96 Spatial Transforms page 97

DICOM Correction Proposal

Sante DICOM Editor 3D

UGviewer: a medical image viewer

CP SC 4040/6040 Computer Graphics Images. Joshua Levine

dicom2nifti Documentation icometrix

ENVI Tutorial: Introduction to ENVI

Essential Training Guide

CROSS SECTIONAL IMAGING IN OSIRIX

nstream Version 3.1 DICOM Conformance Statement

PVR File Format. Specification

Representing Data Elements

Digital Imaging and Communications in Medicine (DICOM) Supplement 174: RESTful Rendering

DICOM Conformance Statement for GALILEI. Software Version V6.0

1

ASPRS LiDAR SPRS Data Exchan LiDAR Data Exchange Format Standard LAS ge Format Standard LAS IIT Kanp IIT Kan ur

Data Storage JMU Computer Science Content Teaching Academy 2014

by Pearson Education, Inc. All Rights Reserved.

DICOM Conformance Statement. EasyGuide R2.1

NDF data format and API implementation. Dr. Bojian Liang Department of Computer Science University of York 25 March 2010

Technical Publications

OpenEXR File Layout. Last Update: 04/24/07

Digital Imaging and Communications in Medicine (DICOM) Supplement 174: RESTful Rendering. Public Comment Draft

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19

BMP file format. Contents. Pixel storage. The BMP file format, sometimes called bitmap. or DIB file format (for device-independent

DICOM Correction Item

DICOM Conformance Statement

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

rawtektv, Version 1.0: A File Format For Storing Video Sequences

DICOM Conformance Statement for Scanner Interface. Release 4.7.1

Punctual Dicom Workstation

Outlook. File-System Interface Allocation-Methods Free Space Management

Binary representation and data

Chapter 6 Storage Management File-System Interface 11.1

Raima Database Manager Version 14.1 In-memory Database Engine

DICOM Conformance Statement

Version 3.1 Format Specification MDF Format 1. Format Specification MDF Format Version 3.1

ENVI Classic Tutorial: Introduction to ENVI Classic 2

Table of Contents ANALYZE 7.5 FILE FORMAT. 1. Introduction page 2. I. Image File page 2. II. Header File page 2. 2.

Data Storage and Query Answering. Data Storage and Disk Structure (4)

PACS and DICOM. Einar Heiberg,

DCMSYS Image Generator User Manual

Bytes are read Right to Left, so = 0x3412, = 0x

GNSS High Rate Binary Format (v2.1) 1 Overview

Sante DICOM Editor. Quick start guide. Copyright 2017 Santesoft, all rights reserved

DICOM 3.0 Conformance Statement

Computer Networks A Simple Network Analyzer PART A undergraduates and graduates PART B graduate students only

MIB BROADCAST STREAM SPECIFICATION

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.

SIVIC GUI Overview. SIVIC GUI Layout Overview

Effective Programming in C and UNIX Lab 6 Image Manipulation with BMP Images Due Date: Sunday April 3rd, 2011 by 11:59pm

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012

Advanced Authoring Format (AAF) Stored Format Specification v1.0.1

Technical Publications

TriMedia Motion JPEG Decoder (VdecMjpeg) API 1

Hashing IV and Course Overview

This is not an official directory; it is for voluntary participation only and does not guarantee that someone will not use the same identifier.

OptimiData. JPEG2000 Software Development Kit for C/C++ Reference Manual. Version 1.6. from

DICOM Correction Item

Dissecting Files. Endianness. So Many Bytes. Big Endian vs. Little Endian. Example Number. The "proper" order of things. Week 6

The Raster Data Model

Technical Publications

Computer Networks A Simple Network Analyzer Decoding Ethernet and IP headers

Fast Bit Sort. A New In Place Sorting Technique. Nando Favaro February 2009

File Management. Chapter 12

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

SAS7BDAT Database Binary Format

Typical File Extensions File Structure

Data Structures and Algorithms Sorting

12: Memory Management

Rasters are: The Raster Data Model. Cell location specified by: Why squares? Raster Data Models 9/25/2014. GEO327G/386G, UT Austin 1

Raster Data Models 9/18/2018

The Raster Data Model

13 FORMATTING WORKSHEETS

Operating Systems Design Exam 2 Review: Spring 2012

InfoTag KE28xx Communications for 186 CPU Firmware Version 4

MPATE-GE 2618: C Programming for Music Technology. Unit 4.3

Basic Dicom Module Options

HDF Command-Line Utilities

TOSHIBA AMERICA MEDICAL SYSTEMS

Seismic Processing Workshop

dysect DICOM Conformance Statement dysect DICOM Conformance Statement

Introduction to volume rendering. Paul Bourke

EXAMINATION FOR THE BSC (HONS) INFORMATION SYSTEMS; BSC (HONS) INFORMATION TECHNOLOGY & BSC (HONS) COMPUTER SCIENCE; YEAR 1

Computer Architectures for Medical Applications 3 rd Exercise, May 2, 2016

fmri/dti analysis using Dynasuite

Caching and Buffering in HDF5

[MS-RDPECLIP]: Remote Desktop Protocol: Clipboard Virtual Channel Extension

UNIX Files. How UNIX Sees and Uses Files

Retinal imaging control software NM. DICOM Conformance Statement

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Transcription:

1 Table of Contents 1. Organizing a List of DICOM Files page 2 2. AVW_VolumeFile as a Header to a Single Binary File page 4 3. Organizing a List of Unknown Files page 5 4. AnalyzeAVW Image File Format page 6 5. Colormapped Example page 9 6. Image and Volume Order page 10

2 Organizing a List of DICOM Files AVW_Volume files are text files used to organize lists of 2D files for use with 3D applications in Analyze. When AVW_VolumeFiles are opened, native header information from the referenced files is returned into the Info string. AVW_VolumeFiles may also be annotated with additional header information. AVW_VolumeFiles can be created in Analyze by several tools in the ImportExport program, including Volume Tool, File Sort Tool, Raw Data Tool, Tape Tool and DICOMDIR tool. Analyze modules respond to the request to save a volume or series of images to a 2D limited format by creating a wrapper volume file and writing each image to sequentially numbered files. The structure of an AVW_VolumeFile is simple. They can be easily created with a text editor. Lines beginning with # are taken as information tags. Standard tags used by Analyze are: Example AVW_VolumeFile AVW_VolumeFile #NoVerify=False #PatientName=MR_SIGNA_LX_1.0T #PatientID=337 #ExamNumber=337 #SeriesNumber=103 #Orientation=Transverse #MaximumDataValue=1034 #MinimumDataValue=0 #AutoPad=False g:/dicom/gems/mr/im219 g:/dicom/gems/mr/im220 g:/dicom/gems/mr/im218 g:/dicom/gems/mr/im221 g:/dicom/gems/mr/im222 g:/dicom/gems/mr/im223 g:/dicom/gems/mr/im224 g:/dicom/gems/mr/im225 #SliceLocation0001=-26.600000 #SliceLocation0002=-20.100000 #SliceLocation0003=-13.600000 #SliceLocation0004=-7.100000 #SliceLocation0005=-0.600000 #SliceLocation0006=5.900000 #SliceLocation0007=12.400000 #SliceLocation0008=18.900000 #VoxelWidth=0.937500 Signature Line If NoVerify=True, the files will not be opened when the volume file is opened Patient information from DICOM headers Header Information collected during file sort List of files (g: is CD ROM) List of slice locations. If the distance between adjacent slices is constant, this distance will be used as the VoxelDepth, and SliceSpacing will be REGULAR.

3 #NoVerify if False all files in the list are opened for verification #AutoPad It True allows files to be different sizes, each image is padded into an image as wide as the widest image in the list and as high as the tallest image in the list. #VoxelWidth voxel dimension in X #VoxelHeight voxel dimension in Y #VoxelDepth voxel depth in Z, or space between slices #VoxelUnits unit of measure for voxel dimensions #MaximumDataValue largest voxel value in data set #MinimumDataValue smallest voxel value in data set #Orientation anatomic orientation of slices; Transverse, Coronal, or Sagittal #SliceLocation#### slice location for slice ####.i.e SliceLocation0001 #SliceSpacing REGULAR or IRREGULAR You may annotate an AVW_VolumeFile with any other information you wish by include lines of the form: #MyTag=MyValue These tags or header elements will be ignored by Analyze but may be referenced in the application that you write using AVW. The AVW_VolumeFile can also be used as a header which points to another file. Specifications in the AVW_VolumeFile control reading of data from the binary file into AVW_Images and AVW_

4 AVW_VolumeFile as a Header to a Single Binary File Creating a volume file header for a binary file of an unsupported image file format provides a way of reading the image data without converting it into another copy of the data. The required information between #RawDataDescriptionStart and #RawDataDescriptionEnd can be generated in the Volume Tool of ImportExport by selecting the right mouse button option Describe Raw Data. Example AVW_VolumeFile AVW_VolumeFile #NoVerify=False #AutoPad=False #RawDataDescriptionStart #SecondaryDataFormat=RawData #VoxelOffset=6144 #Width=256 #Height=256 #Depth=1 #DataType=AVW_SIGNED_SHORT #ByteSwap=Pairs #ReverseBits=No #FlipX=No #FlipY=Yes #RawDataDescriptionEnd H:/Medtronic/1130-40-45.ima Signature Line If NoVerify=True, the files will not be opened when the volume file is opened Patient information from DICOM headers All tag lines between #RawDataDescriptionStart and #RawDataDescriptionEnd are the same as what appears in the Raw Data Tool in ImportExportList of files (g: is CD ROM) Pointer to raw data file

5 Organizing a List of Unknown Files A list of unknown files can be treated as a 3D volume file if there is one image in each file and all files can be processed with the same parameters. Example AVW_VolumeFile AVW_VolumeFile #NoVerify=False #AutoPad=False #RawDataDescriptionStart #SecondaryDataFormat=RawData #VoxelOffset=6144 #Width=256 #Height=256 #DataType=AVW_SIGNED_SHORT #ByteSwap=Pairs #ReverseBits=No #FlipX=No #FlipY=Yes #VoxelWidth=.5000 #VoxelHeight=.5000 #VoxelDepth=1.5000 #RawDataDescriptionEnd H:/Medtronic/1130-40-45.ima H:/Medtronic/1130-40-46.ima H:/Medtronic/1130-40-47.ima H:/Medtronic/1130-40-48.ima Signature Line Note that Depth information is supplied by the file list and not specified in the RawDataDescriptionPointer to raw data file List of raw data files

6 AnalyzeAVW Image File Format The AnalyzeAVW image file format consists of a single file that begins with a self-documenting textual description of the data and the byte offset in the file at which the pixel data starts. No particular suffix or extension is used to identify these files with the exception of.mmap for memory-mapped files in the Analyze workspace. Following is an example of textual information found in a memory mapped file: AVW_ImageFile 1.00 4096 DataType=AVW_FLOAT Width=128 Height=128 Depth=140 NumVols=1 ColormapSize=0 BeginInformation DataFormat= AnalyzeAVW ExamDescription= WB SCAN ExamID= 1.2.840.113619.2.64.672.944162198.11223344 HospitalName= Mayo Clinic MaximumDataValue=0.121805 MinimumDataValue=-0.014635 OriginalDir= /images/demo/pet OriginalFile= GE_Body_MultiVolume OriginalFormat= GEADVANCE OriginalOrient= AVW_TRANSVERSE OriginalVolumes= 1-4 PatientID= Charlton5 ### ### PatientName= LastName, FirstName VoxelDepth=4.250000 VoxelHeight=4.296875 VoxelWidth=4.296875 EndInformation MoreInformation=-1 Vol Slc Offset Length Cmp Format.CONTIG EndSliceTable

7 The first line contains the signature (AVW_ImageFile), the version number (1.00), and the byte offset to the image data in file (4096). To facilitate memory mapping voxel data across all platforms the byte offset value is always a multiple of 4 kilobytes (4096). The fields Width, Height, Depth, NumVols, and ColormapSize are all required by AVW and correspond to the same named elements of AVW_Images and AVW_Volumes. Width and Height are in voxels, Depth in slices, NumVols is the number of volumes in the file, and ColormapSize is the number of palette colors (if any) with this data. All of these tags correspond to structure elements of the same name in the AVW_ImageFile, AVW_Image, and AVW_Volume structures. If there were a colormap present it would immediately follow as a series if RGB color triples 1 to a line for each color in the palette. Lines between BeginInformation and EndInformation are optional header information that the AVW ImageIO functions read from the proprietary headers when creating the file. AVW functions will use MaximumDataValue and MinimumDataValue in the scaling of data for display. Likewise VoxelWidth, VoxelHeight, and VoxelDepth are used for resizing the data as in interpolation of data to produce cubic voxels. Vol Slc Offset Length Cmp Format.CONTIG EndSliceTable The slice table indicates the byte offset of each slice in the file. Memory mapped files are uncompressed and contiguous, so the detail is unnecessary. Space between EndSliceTable and byte 4096 is filler and ignored. Textual descriptions grow in 4086 bytes increments if necessecary while a file is being written. Images are stored as a contiguous byte stream. Images of odd width are not padded. Voxel values are stored BigEndian unless otherwise noted on the header.

8 The below example shows a potion of file that was written on a LittleEndian machine (Endian=Little) with ZLIB compression. Note the slice table shows the location and length of data for each compressed slice in the file. Note also that this file has 8192 bytes partitioned for textural description of the data. If this file is read on a Big Endian machine images must be byte swapped. AVW_ImageFile 1.00 8192 DataType=AVW_FLOAT Width=128 Height=128 Depth=140 NumVols=1 Endian=Little ColormapSize=0 BeginInformation DataFormat= AnalyzeAVW ExamDescription= WB SCAN ExamID= 1.2.840.113619.2.64.672.944162198.11223344 HospitalName= Mayo Clinic MaximumDataValue=0.121805 MinimumDataValue=-0.014635 OriginalDir= /images/demo/pet OriginalFile= GE_Body_MultiVolume OriginalFormat= GEADVANCE OriginalOrient= AVW_TRANSVERSE OriginalVolumes= 1-4 PatientID= Charlton5 ### ### PatientName= LastName, FirstName SliceNumber=139 VoxelDepth=4.250000 VoxelHeight=4.296875 VoxelWidth=4.296875 EndInformation MoreInformation=-1 Vol Slc Offset Length Cmp Format 0 0 8192 41414 2 0 1 49606 41060 2 0 2 90666 40907 2 0 3 131573 40655 2 0 4 172228 39682 2 0 5 211910 40838 2 0 6 252748 39964 2

9 Colormapped Example Colormapped image files are generally of data type AVW_UNSIGNED_CHAR. In this example voxels with a value of 0 are displayed with the first palette entry (32 32 128) midnight blue. AVW_ImageFile 1.00 4096 DataType=AVW_UNSIGNED_CHAR Width=340 Height=340 Depth=1 NumVols=1 Endian=Little ColormapSize=251 32 32 128 0 0 0 4 4 4 8 8 8 12 12 12 16 16 16 20 20 20 24 24 24 (continues for 251 entries) BeginInformation BestThumbnail=0 DataFormat= AnalyzeAVW EndInformation MoreInformation=-1 Vol Slc Offset Length Cmp Format CONTIG

10 Image and Volume Order In the voxel portion of the file images are stored as contiguous runs of voxels with no padding to accommodate odd image widths or odd byte counts. Volumes are stored as continuous runs of slices. Twenty-four bit color (RGB) images however are stored with a continuous RedVolume, followed by the Green and Blue Volumes. A file of 3 slices of 2 pixel square images is stored as follows: Byte > RRRRRRRRRRRRGGGGGGGGGGGGBBBBBBBBBBBB RGB slice 1 RGB slice 2 RGB slice 3 Or taking each 4 bytes as a slice the slices are are ordered R 1 R 2 R 3 G 1 G 2 G 3 B 1 B 2 B 3 Multivolume RGB files follow the same pattern. Byte > Volume 1 Volume 2 RRRRRRRRRRRRGGGGGGGGGGGGBBBBBBBBBBBBrrrrrrrrrrrrggggggggggggbbbbbbbbbbbb This AVW_ImageFIle format supports 2D, 3D, & 4D. Voxel data types of 8, 16, 32 signed and unsigned integers, floating point, complex, and 24 bit reg-green blue are supported. It is extensible to accommodate new data types, compression schemes and user defined header information. Developers should use AVW and the current version of the shared library libavwanalyzeavw to read and write these files as these specifications are open to change. The format is somewhat self-documenting and text and voxel sections are easily separated with Unix file utilities.