Detection Of water bodies from rest of the image

2 ビュー (過去 30 日間)
Gaurav
Gaurav 2012 年 3 月 21 日
I want to extract only water bodies from rest of the image..how can i do this efficiently? Can anyone help me?
  2 件のコメント
Image Analyst
Image Analyst 2012 年 3 月 21 日
Where did you upload your image to?
Gaurav
Gaurav 2012 年 3 月 28 日
Sir i want to extract only the water part as shown in the following image..
http://www.freemalaysiatoday.com/wp-content/uploads/2011/01/No-water-electricity-roads-in-Jabus-constituency-1.jpg
Please help me to achieve this efficiently...

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

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 3 月 21 日
I = your_image;
for ii = size(I,1):-1:1
for jj = size(I,2):-1:1);
water(ii,jj) = isWet(I(ii,jj,:))
end
end
Now you just need to write isWet().
  1 件のコメント
Gaurav
Gaurav 2012 年 3 月 23 日
Thanks for your reply...
But I am confused about what to write in isWet.Is this a threshold function for pixel values corresponding to water color? or anything else?
Please help me as i m very new to image processing and matlab...
Thank u.

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

その他の回答 (1 件)

Gaurav
Gaurav 2012 年 3 月 26 日
Thanks for your reply... But I am confused about what to write in isWet.Is this a threshold function for pixel values corresponding to water color? or anything else? Please help me as i m very new to image processing and matlab... Thank u.
  2 件のコメント
Image Analyst
Image Analyst 2012 年 3 月 26 日
It looks like Sean's joke went over your head. But you still have a chance to respond to my comment about posting your image.
Gaurav
Gaurav 2012 年 3 月 28 日
Sir i want to extract only the water part as shown in the following image..
http://www.freemalaysiatoday.com/wp-content/uploads/2011/01/No-water-electricity-roads-in-Jabus-constituency-1.jpg
Please help me to achieve this efficiently...

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

カテゴリ

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