imshow error with Matlab 2014a. ... Error using Settings Undefined function or variable 'matlab.in​ternal.get​SettingsRo​ot'. Error in iptgetpref (line 22) s = Settings; Error in imshow (line 234) initial_mag =

I cannot open images with Matlab 2014a using imshow and imtool. The following error shows up: Error using Settings Undefined function or variable 'matlab.internal.getSettingsRoot'.
Error in iptgetpref (line 22) s = Settings;
Error in imshow (line 234) initial_mag = iptgetpref('ImshowInitialMagnification')
Please help. Francisco

回答 (2 件)

This might be a path problem. Try the restoredefaultpath and rehash toolboxcache commands to reset the path and refresh the function and file system path caches:
>> restoredefaultpath;
>> rehash toolboxcache;
Afterward, try using imshow and imtool again to see if the issue is resolved. If so, you can then use the savepath command to save the path so that the restored path is used in future sessions.
Before saving, though, keep in mind that restoredefaultpath removes all customization to the default path. You can add any directories back to customize the path by using addpath command or by using the pathtool.

2 件のコメント

Adrin
Adrin 2015 年 1 月 26 日
Thank you !
-1
-1 2017 年 10 月 28 日
Thank you for your helping answer which is very useful.

サインインしてコメントする。

Ahmet Tar?k TORUN
Ahmet Tar?k TORUN 2015 年 3 月 27 日
I have a problem when I open my image file. My image file is 888*517*4 uint16 but it was give error like bottom
Error using imageDisplayValidateParams>validateCData (line 113) Multi-plane image inputs must be RGB images of size MxNx3.
Error in imageDisplayValidateParams (line 27) common_args.CData = validateCData(common_args.CData,image_type);
Error in imtool/addImageToImtool (line 322) common_args = imageDisplayValidateParams(common_args);
Error in imtool (line 269) addImageToImtool(varargin{:});
How can I solve this?

3 件のコメント

Which variable is your image matrix? Also, imshow() only works for gray scale or color images, not multiband images like you have, with 4 spectral channels. You'll have to extract only 1 or 3 of the spectral channels for display, not all 4.
Yes I choosed band combination 4,3,2 but it didnt work.
You did not answer my question. There was a question in my reply - perhaps you overlooked it. Read http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer then start your own question, and attach your multiband image, and your code for reading it in, using multibandread() or however you did it.

サインインしてコメントする。

タグ

質問済み:

2014 年 8 月 7 日

コメント済み:

-1
2017 年 10 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by