フィルターのクリア

Adding 3 images to a GUI showing the red, green, and blue channel of an image

1 回表示 (過去 30 日間)
Caitlin Schmidt
Caitlin Schmidt 2019 年 7 月 21 日
回答済み: Rik 2019 年 7 月 21 日
Write a GUI based Matlab program to open a true-color image, display the image, then show the red, green and blue channel of the image in three other axes. Your GUI should look the same as the example below.
I have written the GUI and am able to upload the original image and display it in the GUI, however I need help with adding the 3 other images with the 3 channels. I tried using imsplit in my callback function, but it is not working. Any help is appreciated!

採用された回答

Rik
Rik 2019 年 7 月 21 日
RGB images in Matlab are stored as 3D arrays. As the third dimension stores the colors, something like this should work (pay attention to a conversion to double (and a rescale) that many be needed)
imshow(IM(:,:,1)), title('red')

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by