Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 New release of BIAC MATLAB software planned
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Oct 16 2003 :  3:03:46 PM  Show Profile  Reply with Quote
BIAC MATLAB Users,

BIAC is preparing to release a new version of the BIAC MATLAB software within the next few weeks. The most significant changes will be a complete rewrite of the readmr and writemr functions and modifications of many programs to support BXH data.

BXH enabled readmr and writemr

The readmr and writemr functions have been rewritten to include the following features:
  • Read and write BXH format.

  • Automatically detect and read formats with headers. (BXH, DICOM, SignaXIMG, Signa5, Analyze7.5_SPM)

  • New "Raw" format which can be used to read other N-dimensional data formats.

  • New GUI for reading the data.

  • Return variable includes additional information (voxel size, orientation, etc).

readmr now returns a structure containing additional information about the image in addition to the voxels values themselves. The data can be accessed using .data after the variable name (e.g. srs.data) and the additional information about the image can be accessed using .info after the varaible name (e.g. srs.info). If you want to perform mathematical operations on the data itself you could do the following:
img = readmr('mydata.bxh')
meanImg = mean(img.data,4);
The new versions of readmr and writemr support the following old syntaxes for backwards compatibility with existing scripts:
[srs,name,params]=readmr(fName,xSz,ySz,zSz,cannedFormat);
[srs,name,params]=readmr(fName,xSz,ySz,zSz,hdrSz,pixelType,byteOrder,allInOne,startExt);
writemr(fName,srs);
writemr(fName,srs,cannedFormat);
The only intended backward-*in*compatible change should be the return type of readmr when called without arguments. This will not only use the new GUI, but it will also return the new mr structure. In all other respects the use of old and new calling conventions for readmr and writemr should be transparent. Please report any glitches.

readmr and writemr can now handle 4D data, so there is no need to use readtsv and writetsv anymore. These functions have been still exist for backwards compatibility, but readmr and writemr should be used instead.

Function support for BXH data

A number of functions have been updated to read and generate BXH data. Most notably, mrtest, tstatprofile2, splinealignmr, and qastats2 now support BXH. showsrs2 also will automatically determine the orientation and voxel size from the image if it has already been specified.

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Oct 22 2003 :  5:54:44 PM  Show Profile  Reply with Quote
BIAC MATLAB Users,

A test version of the BIAC MATLAB Tools 3.0 is available for testing. To use the new version of the tools, you need to set your BIACMATLABROOT environment variables as follows:

On Windows:
(1) Open "System Control" panel
(2) Select "Environment Variables" from the "Advanced Tab"
(3) Create a variable
Variable name: BIACMATLABROOT
Variable value: \\Gall\Programs\MATLAB\BIAC_ver3.0

(4) Edit/Create a variable
Variable name: PATH
Variable value: \\Gall\Programs\MATLAB\BIAC\lib


On Golgi:
(1) xemacs .bash_profile
(2) Add the following line and save the file
export BIACMATLABROOT=~/net/gall/programs/MATLAB/BIAC_ver3.0
(3) Log out and in again (or type "source .profile")

The old alpha directory (\\Gall\Programs\User_Scripts\alpha) must not be on your MATLAB path. Remove it from your path if you have already added it.

If you encounter any problems, please post them here.

Thanks,
Chuck

2003-12-17 Edit: Suggested using .bash_profile instead of .profile

Edited by - charles.michelich on Dec 17 2003 12:35:02 PM
Go to Top of Page

diaz
BIAC Alum

USA
212 Posts

Posted - Dec 16 2003 :  1:40:24 PM  Show Profile  Reply with Quote
I'm having trouble using tstatprofile2 on the p670. I added the line (biacmatlabroot) in the .profile file, as indicated. But when I type tstatprofile2 (in matlab) it gives an error "undefined function or variable". I've looked at the path list and it's listing the old BIAC matlab paths (e.g. /usr/local/MATLAB/BIAC/mr instead of /usr/local/MATLAB/BIAC_ver3.0/mr).

I've tried logging out and in of both golgi as well as on my computer.
Any ideas?
Thanks!
Michele

Edited by - diaz on Dec 16 2003 2:33:40 PM
Go to Top of Page

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Feb 13 2004 :  01:21:17 AM  Show Profile  Reply with Quote
BIAC MATLAB Users,

Version 3.0 of the BIAC MATLAB Software has been released (see http://www.biac.duke.edu/forums/topic.asp?TOPIC_ID=338). If you have been using the test software in \\Gall\Programs\MATLAB\BIAC_ver3.0, please change back to the default setup as follows:

On Windows:
(1) Open "System Control" panel
(2) Select "Environment Variables" from the "Advanced Tab"
(3) Delete variable BIACMATLABROOT

On Golgi:
(1) xemacs .bash_profile
(2) Remove the following line and save the file
export BIACMATLABROOT=~/net/gall/programs/MATLAB/BIAC_ver3.0
(3) Log out and in again

Thanks for testing,
Chuck
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.39 seconds. Snitz Forums 2000