Rの画像行列<480×720 uint8>をX,Yそれぞれ5分割し、真ん中(96×144)の平均値を算出したい。
Show older comments
R = rgbValues(240, 360, 1); のような一画素の値は出力ではなく、 (96×144)の範囲の平均値を出したい。
cam1=vcapg2;%カメラから画像行列取得 image(cam1);%画像表示 pause(0.02);
rgbValues = cam1;%RGBの画像行列
%RGB RGB = rgbValues(240, 360, :); RGB = reshape(RGB, [1,3]);
1 Comment
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!
