フィルターのクリア

How to exclude some value from raster matrix

3 ビュー (過去 30 日間)
Karolina
Karolina 2015 年 7 月 16 日
コメント済み: Karolina 2015 年 7 月 16 日
I have a raster matrix with float values. I would like to find the minimum, median, mean, and the maximum values of my data, but when I use minA=min(A) I am receiving -1.797693134862316e+308 what represent the pixels with no data. How to exclude this value from my evaluation?

採用された回答

Image Analyst
Image Analyst 2015 年 7 月 16 日
Reassign bogus values to something else, like 0 or infinity or nan. Make sure it's some value that won't also mess up your max calculation:
A(A<0) = 0;
minA = min(A(:));
  2 件のコメント
Karolina
Karolina 2015 年 7 月 16 日
Yes, but when I set this value to zero, then the min value will be equal to zero. And also it will have an influence for median evaluation, because zero will be taken into account. I have to exclude this value. Maybe export only the values which are larger than zero into a new raster will help?
Karolina
Karolina 2015 年 7 月 16 日

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEquivalent Baseband Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by