Box counting method in a tif image

1 回表示 (過去 30 日間)
Arlete Conde
Arlete Conde 2022 年 7 月 21 日
コメント済み: Arlete Conde 2022 年 7 月 22 日
Hi. I have a satellite image band 2 in tiff format, I want to use this image to make the box counting method. I used this code, but my image is black. How I can resolve this?
c = imread('B2.tif'); imagesc(~c) colormap gray axis square

採用された回答

Christopher McCausland
Christopher McCausland 2022 年 7 月 21 日
Hi Arlete,
If you could share the image that would be great.
Having a look at your code the ~ will turn 'c' into a logical array. Try this instead;
c = imread('B2.tif');
imagesc(c) % note the removed ~
Let me know if that helps,
Christopher
  3 件のコメント
Christopher McCausland
Christopher McCausland 2022 年 7 月 22 日
Hi Arlete,
I am glad I could help.
If you have what you need feel free to not share the image. You can also attach it directly in this MATLAB forum via the 'insert' section if you so wish.
If you have issues with the boxcounting method, ask a new question in the forum, there are many very experienced people here who will help! (Many who have a better knowledge of MATLAB and stats than I do!) This way you can get a more informed discussion and your question may help someone with the same problem in the future.
Kind regards,
Christopher
Arlete Conde
Arlete Conde 2022 年 7 月 22 日
I tried to send the image but because the tiff format, this not support. I compressed the image and tried to send, said that the file exceeds 5MB, that's why I asked for your email.
I asked a new question about the code boxcount. Can will you see the question?

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by