Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to separate an image to rgb?

1 次查看(过去 30 天)
adibbakarrudin
adibbakarrudin 2014-4-18
关闭: MATLAB Answer Bot 2021-8-20
How to extract r, g and b values from an image in matrix form?

回答(1 个)

Jos (10584)
Jos (10584) 2014-4-18
Is your image a RGB image with 3 dimensions?
RedValues = MyImage(:,:,1)
...
  3 个评论
Walter Roberson
Walter Roberson 2014-4-18
Why not? Not every location will have any measurable red contribution.
Image Analyst
Image Analyst 2014-4-18
Try putting a semicolon at the end of the line to suppress the display of pixel values.

Community Treasure Hunt

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

Start Hunting!

Translated by