Delete selected image in 2D array imtool

1 回表示 (過去 30 日間)
DB
DB 2023 年 11 月 1 日
コメント済み: Jon 2023 年 11 月 3 日
Hello,
below is the values in my 2D array represented using imtool. Is there a way to select one of the curve to be deleted but keep the rest the same (index and values of the curve that is not deleted the same). I need to do some calculations on one curve at a time without having the other curve values influence the calculation. Is there a way? Thanks so much.
  7 件のコメント
Jon
Jon 2023 年 11 月 2 日
Is the situation always quite similar to the one shown in the example image, that is, two similarly shaped "curves" with one translated vertically relative to the other?
DB
DB 2023 年 11 月 2 日
in this test case, yes.

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

採用された回答

Image Analyst
Image Analyst 2023 年 11 月 2 日
No, there is no way to "paint" or mask pixels using imtool. You'll have to write a script for that. Demo attached.
  3 件のコメント
Image Analyst
Image Analyst 2023 年 11 月 3 日
@Jon yes, there are automatic ways. I made a partial stab at it but it's not done. It's only partially working and I don't have time to finish it. I've attached as far as I got. It will take maybe another half hour or hour to finish it and I don't have time. Finish it if you want.
Jon
Jon 2023 年 11 月 3 日
Hi @Image AnalystThanks for sharing your code. It seemed like a challenging problem and I was interested to see how you would approach it. I will look through your code so I can learn more about how this type of problem can be solved.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeExplore and Edit Images with Image Viewer App についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by