フィルターのクリア

calculate mean of a vector

3 ビュー (過去 30 日間)
Raman
Raman 2013 年 4 月 24 日
i've an image of size 256 x 256
i've extracted one block from it, then i've convert the matrix to vector.
can anyone tell me how to calculate the mean of the vector.
grayImage=rgb2gray(imread('misile.jpg'));
grayImage=imresize(I,[256,256]);
J= grayImage(1:128,1:128);
vect=reshape(J.',1,numel(J)); % matrix to vector conversion
plz tell me how to calculate mean of a vector

採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 4 月 24 日
out = mean(vect);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by