How did you call the display function, such as imshow(), in both cases? It should work the same. Are you using GUIDE or App Designer for the "GUI" method?
To change your gray scale image back into the original RGB image, you simply assign it:
That should work as long as you still have img available.
4 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262038
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262038
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262368
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262368
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262613
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1262613
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1264210
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/716293-convert-gray-to-rgb#comment_1264210
サインインしてコメントする。