ctf_write_mri

ctf_write_mri - function ctf_write_mri(mri, fileName,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function ctf_write_mri(mri, fileName, force) % ctf_write_mri - write a CTF .mri file % % ctf_write_mri(mri,fileName,force) % % mri is a data struct returned from ctf_read_mri. It may contain % mri.file, in which case, you do not need the fileName input here. If the % file exists, you are prompted for a new file name, unless force = 1. % % The CTF MRI File format used by MRIViewer consists of a binary file with % a 1,028 byte header. The MRI data can be in 8-bit (unsigned character) or % 16-bit (unsigned short integer) format and consists of 256 x 256 pixel % slices, stored as 256 contiguous sagittal slices from left to right (or % right to left if head orientation is left-on-right). Each slice is stored % as individual pixels starting at the left, anterior, superior % corner and scanning downwards row by row. Therefore the coronal % position is fastest changing, axial position second fastest % changing and sagittal position slowest changing value in the % file, always in the positive direction for each axis (see section % on Head Coordinate System for axis definitions). By default CTF % MRI files have the file extension .mri % % <>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> % % < > % % < DISCLAIMER: > % % < > % % < THIS PROGRAM IS INTENDED FOR RESEARCH PURPOSES ONLY. > % % < THIS PROGRAM IS IN NO WAY INTENDED FOR CLINICAL OR > % % < OFFICIAL USE. > % % < > % % <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<> % % % $Revision: 1.1 $ $Date: 2009/01/30 03:49:27 $ % Copyright (C) 2003 Darren L. Weber % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License % as published by the Free Software Foundation; either version 2 % of the License, or (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details....
View Full Document

Page1 / 16

ctf_write_mri - function ctf_write_mri(mri, fileName,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online