calculate mean from different images

5 ビュー (過去 30 日間)
Hana
Hana 2014 年 10 月 20 日
コメント済み: Image Analyst 2014 年 10 月 21 日
I can calculate mean of Tbv and Svvc using the following link.I have more images lets say Tbv2,Svvc2,RVI3,Tbv3,Svvc3,RVI3. I want to calculate the mean Tbv and Svvc of all the images at once.
Tbv1 = imread('tb.tif');
Svvc1 = imread('vv.tif');
RVI1 =imread('rvi.tif')
ME_v1 = nanmean(Tbv1( RVI1>=0 & RVI1 <=0.2));
ME_vv1 = nanmean(Svvc( RVI1>=0 & RVI1 <=0.2));
ME_v2 = nanmean(Tbv( RVI1>=0.2 & RVI1 <=0.4));
ME_vv2 = nanmean(Svvc( RVI1>=0.2 & RVI1 <=0.4));

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 20 日
Do your images have nans in them? I didn't know you could store tiff images if you did not have numerical data. And I didn't see any valid link in your code like you mentioned. Are your images monochrome or color? If they're monochrome, you're doing it right, but you could probably use mean() instead of nanmean().
  2 件のコメント
Hana
Hana 2014 年 10 月 21 日
I have some nan values in the image..but it does not matter.my question is how to calculate mean from different images...In this code I calculate mean from one image only.
Image Analyst
Image Analyst 2014 年 10 月 21 日

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by