Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 ROI Solutions
 mseg2roi and readmr issues

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
cyt Posted - May 10 2006 : 2:50:31 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
petty Posted - May 11 2006 : 09:31:57 AM
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.

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