What is the mathematical expression for green channel extraction?
4 ビュー (過去 30 日間)
古いコメントを表示
Hi, I know that the green channel of a colour image can be extracted by the command green_img=input_img(:,:,2); Can this operation be represented mathematically in any way? What is the process happening in this extraction?
0 件のコメント
回答 (2 件)
Image Analyst
2016 年 3 月 5 日
Not really. It is what it is. At least if it's taken from a camera snapshot. Of course you can create/synthesize an image with a green channel created from a specific formula if you want.
0 件のコメント
Walter Roberson
2016 年 3 月 5 日
How remarkably odd. Two different people who were active 4 years ago and not since, on the same day post the same question, one that we have never had posted before...
My answer to you, "N", is the same as my answer to "x":
[r, c, p] = size(YourRGBArray);
GreenPlane = reshape(reshape(YourRGBArray,[], 3) * [0; 1; 0], r, c);
I do not recommend this for practical use; matrix indexing is faster and clearer.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!