画像行列<480×720×3 unit8>のXから200番目、Yから100番目のところをRGB = ( , , )という形でワークスペ-スに取り込みたい。
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
画像行列<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);%青の画像行列取得
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu イメージ タイプの変換 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!