| 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. |
|
|