Incorrect image in bwconncomp function documentation

3 ビュー (過去 30 日間)
Patrick
Patrick 2024 年 10 月 11 日
コメント済み: Patrick 2024 年 10 月 11 日
I was going through the section https://www.mathworks.com/help/images/ref/bwconncomp.html#bu2xeh0-1 in the function documentation. I see the largest component in the image has not been erased. Please help with this.

採用された回答

DGM
DGM 2024 年 10 月 11 日
Yep. That looks like when they edited the example to include the new cc2bw() function, they changed the variable name, but didn't fix the call to imshow().
I submitted a note. At the bottom of docs pages, if you give it a feedback rating, it will pop up a text box that allows you to submit an explanation. For things like this that are easy to explain, that's the easy way to bring attention to docs issues.
  1 件のコメント
Patrick
Patrick 2024 年 10 月 11 日
Hey thanks for the info. I have submitted a note from my side as well.

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

その他の回答 (1 件)

Aneela
Aneela 2024 年 10 月 11 日
Hi Patrick,
I have executed the code in the given documentation: https://www.mathworks.com/help/images/ref/bwconncomp.html#bu2xeh0-1
The largest component will be erased when you change the variable name:
BW2=cc2bw(CC,ObjectsToKeep=idx);
imshow(BW2);
This will erase “ff” from the original image.
  1 件のコメント
Patrick
Patrick 2024 年 10 月 11 日
yeah, this works. Thank you.

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

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by