area of water body in a grey color image

2 ビュー (過去 30 日間)
Poornima Posa
Poornima Posa 2021 年 10 月 21 日
回答済み: yanqi liu 2021 年 10 月 27 日
how to get area of water body in one band of a landsat image
  2 件のコメント
KSSV
KSSV 2021 年 10 月 21 日
What data you have? What exactly you want to do?
Poornima Posa
Poornima Posa 2021 年 10 月 21 日
i have band 4 of a landsat data, i need to find area of waterbody in that band

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

回答 (2 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 10 月 21 日
If the water-surface are flatter than the not-water-surfaces (seems reasonable assumption for standard optical satellite imaging without additional information), then you might try to look after regions where the magnitude of the gradients are small:
Im = double(your_one_band_landsat_image);
[dIdx,dIdy] = gradient(Im);
d2I = del2(Im);
subplot(1,3,2)
imagesc(Im)
subplot(1,3,1)
imagesc(d2I)
subplot(1,3,3)
imagesc(abs(dIdx)+abs(dIdy)) % other measures of flatness are also available
HTH

yanqi liu
yanqi liu 2021 年 10 月 27 日
sir,may be upload some image sample to develop.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by