rgb components
古いコメントを表示
can anyone plz tell me which function is used on a image to find its rgb components?
回答 (1 件)
David Young
2011 年 2 月 21 日
It depends on how the image is currently stored. Assuming it is stored as an RGB image, you can extract the components by indexing the planes of the image array like this:
redpart = image(:,:,1);
greenpart = image(:,:,2);
bluepart = image(:,:,3);
If the immage is not an RGB image, you can use a function such as ind2rgb to convert it to that form first.
カテゴリ
ヘルプ センター および File Exchange で Image Filtering and Enhancement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!