フィルターのクリア

How to convert red channel of a rgb image to grayscale image?

4 ビュー (過去 30 日間)
Ghazal Hnr
Ghazal Hnr 2018 年 5 月 25 日
コメント済み: Ghazal Hnr 2018 年 5 月 25 日
I have some rgb images. I want to know is there any way to only convert the red channel of them to grayscale?

採用された回答

Image Analyst
Image Analyst 2018 年 5 月 25 日
Yes. Very easy:
redChannel = rgbImage(:, :, 1); % Extract the red channel only into a gray scale image.
  3 件のコメント
Image Analyst
Image Analyst 2018 年 5 月 25 日
That is a bad explanation and they should know better. When you extract the red channel, it is already a grayscale image at that point -- there is no need for a second step of converting it to a gray scale image.
Ghazal Hnr
Ghazal Hnr 2018 年 5 月 25 日
Thank you for your response.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by