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
 ROI Solutions
 mseg2roi and readmr issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cyt
Starting Member

5 Posts

Posted - May 10 2006 :  2:50:31 PM  Show Profile  Reply with Quote
Hello all,

The 6/17/03 version of mseg2roi.m is having problems with readmr. The resulting error message,

Error using ==> readmr
Too many output arguments.

references line 71 in the script, which is as follows:

[segvol,segFilename] = readmr;

I made the following changes to the code in an attempt to solve the error:

-changed line 71 to
[segvol]=readmr;

-changed line 92 from
segvals(find(segvals==0))=[];
to
segvals.data(find(segvals.data==0))=[];


-changed line 147 from
isMemTF=ismember(segvals,labelsegvals);
to
isMemTF=ismember(segvals.data,labelsegvals);

-changed line 159 from
segnames(n) = labelsegnames(segvals(n) == labelsegvals);
to
segnames(n) = labelsegnames(segvals.data(n) == labelsegvals);

-changed line 185 from
roi=mask2roi(segvol==segvals(n));
to
roi=mask2roi(segvol.data==segvals.data(n));

-changed line 200 from
tempvol(find(segvol==segvals(n)))=255;
to
tempvol(find(segvol.data==segvals.data(n)))=255;

After these modifications, the script runs successfully, but only evaluates one of the 23 ROIs that

is defined in the label file being used. Strangely, it is the 14th of these 23 that is evaluated,

not the first or the last, and this choice persists when the script is run on different subjects.

Any ideas would be greatly appreciated, and the files mentioned here can be found at

\\Nernst\Data2\CenterForAging\Aging.06\Scripts

petty
BIAC Staff

USA
453 Posts

Posted - May 11 2006 :  09:31:57 AM  Show Profile  Reply with Quote
as you've seen the script is pretty old. no one around here actually uses it anymore. if you are using it to break down drawn rois into seperate files, we've since moved onto new roi analysis scripts that use the entire ROI volume, with multiple ROIs at the same time. If this is what you are doing: look in \\Gall\Programs\User_Scripts\irisanalysis for the newest versions.

If this isn't what you are doing, only people with permissions to your study can actually get into the Aging.06 study.
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.49 seconds. Snitz Forums 2000