画像行列<480×720×3 unit8>のXから200番目、Yから100番目のところをRGB = ( , , )という形でワークスペ-スに取り込みたい。
Show older comments
画像行列<480×720×3 unit8>をそれぞれ
- R = < 480×720 unit8 >
- G = < 480×720 unit8 >
- B = < 480×720 unit8 >
に分けた。 Xから200番目、Yから100番目の画素の輝度を RGB = ( , , )としたい。
cam1=vcapg2;%カメラから画像行列取得
image(cam1);%画像表示
pause(0.02);
R = cam1(:,:,1);%赤の画像行列取得
G = cam1(:,:,2);%緑の画像行列取得
B = cam1(:,:,3);%青の画像行列取得
1 Comment
michio
on 11 Jul 2018
勝手ながら表示を少し編集いたしました。
Accepted Answer
More Answers (0)
Categories
Find more on イメージ タイプの変換 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!