Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 New release of BIAC MATLAB software planned

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
charles.michelich Posted - Oct 16 2003 : 3:03:46 PM
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.
3   L A T E S T    R E P L I E S    (Newest First)
charles.michelich Posted - Feb 13 2004 : 01:21:17 AM
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
diaz Posted - Dec 16 2003 : 1:40:24 PM
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
charles.michelich Posted - Oct 22 2003 : 5:54:44 PM
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

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.3 seconds. Snitz Forums 2000