My Matlab's version is R2008a. The report of the error is:
Exception occured. (MATLAB:hg:udd_interface:goSetUDDPointerProp:CannotSetProperty)
Error using ==> set
Error using ==> set
TrueColor CData contains element out of range 0.0 <= value <= 1.0
2976#line, DrawColorbar, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
2906#line, DefineColorMap, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
2697#line, Overlay_Misc, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
433#line, rest_sliceviewer, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
I will send my overlay to your e-mail (Dawnwei.song@gmail.com), so you can try. thanks.
In previous releases, imresize used a somewhat different algorithm by default. If you need the same results produced by the previous implementation, call the function imresize_old.
The solution to your question temporarily is to replace imresize with imresize_old in rest_sliceViewer.m
Thanks for your report and your overlay.
Chaogan could revise the new version to make REST more compatible.
And welcome all the problems report when you use REST.
So it would always not be a good idea to run a program not tested on a specific platform since it is too time-consuming to resolve a bug and finally found that this is caused by the platform which we can't say goodbye.
Submitted by admin on Wed, 03/25/2009 - 22:07 Permalink
Check the overlay's value in stange color area
Click your mouse at the the strange color area, and check the value of overlay.
Submitted by junesums on Wed, 03/25/2009 - 23:26 Permalink
the overlay's value in stange color area is less than 4.5
Submitted by admin on Thu, 03/26/2009 - 10:28 Permalink
Please check more
As you say, it seems like a bug, would you like to share your overlay? I still can't believe there would be something wrong with the threshold.
The value of underlay of your mouse's position seems to be in white matter as its value is 112.
Another method to check is to change a colorbar, you could do this by:
Misc -> Set overlay's colorbar -> 10 (this would divide the values of overlay space equally to ten divisions corresponding to ten colors)
Misc -> Set range of threshold -> [4.5, 21] (this would make sliceviewer only show positive values)
Submitted by junesums on Thu, 03/26/2009 - 11:49 Permalink
Re
I select another position, and set range of threshold -> [5, 16], but it seems the same as before.
After I set overlay's colorbar to 10, an error occured.
Submitted by admin on Thu, 03/26/2009 - 21:01 Permalink
This seems like a compatible problem.
I thought it maybe caused by the different version of Matlab. What is the version of your Matlab?
And please report the errors in the main Matlab command window.
Does the error looks like "TrueColor CData contains element out of range 0.0 <= value <= 1.0"?
If so, it must be caused by the new Matlab version (I could repeat the error under Matlab 2008a).
I didn't get the overlay, so I could not repeat your confusion. However Matlab 2006b is recommended since REST is coded in this version.
Submitted by junesums on Thu, 03/26/2009 - 21:40 Permalink
Re
My Matlab's version is R2008a. The report of the error is:
Exception occured. (MATLAB:hg:udd_interface:goSetUDDPointerProp:CannotSetProperty)
Error using ==> set
Error using ==> set
TrueColor CData contains element out of range 0.0 <= value <= 1.0
2976#line, DrawColorbar, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
2906#line, DefineColorMap, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
2697#line, Overlay_Misc, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
433#line, rest_sliceviewer, in "D:\tool\research\REST2007V1.2_090101\rest_sliceviewer.m"
I will send my overlay to your e-mail (Dawnwei.song@gmail.com), so you can try. thanks.
Submitted by admin on Fri, 03/27/2009 - 10:57 Permalink
Matlab 2008a Updated function: imresize
The solution to your question temporarily is to replace imresize with imresize_old in rest_sliceViewer.m
Thanks for your report and your overlay.
Chaogan could revise the new version to make REST more compatible.
And welcome all the problems report when you use REST.
So it would always not be a good idea to run a program not tested on a specific platform since it is too time-consuming to resolve a bug and finally found that this is caused by the platform which we can't say goodbye.