画像行列<480×720×3 unit8>のXから200番目、Yから100番目のところをRGB = ( , , )という形でワークスペ-スに取り込みたい。
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
画像行列<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);%青の画像行列取得
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur イメージ タイプの変換 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!