画像行列<480×720×3 unit8>のXから200番目、Yから100番目のところをRGB = ( , , )という形でワークスペ-スに取り込みたい。
Mostrar comentarios más antiguos
画像行列<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 comentario
michio
el 11 de Jul. de 2018
勝手ながら表示を少し編集いたしました。
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre イメージ タイプの変換 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!