フィルターのクリア

Help on bwconncomp function

3 ビュー (過去 30 日間)
Matlabhelp
Matlabhelp 2016 年 9 月 29 日
移動済み: Sabin 2023 年 1 月 29 日
Hello
I'm having trouble using the bwconncomp for my specific matrix. here is an example of my matrix ( only a small selection out of a 20x20 matrix ). The matrix is named roundData
Columns 11 through 20
4 2 5 5 5 2 4 2 1 5
1 5 4 1 1 4 2 3 2 5
2 4 4 2 5 1 1 5 2 5
2 2 4 4 2 5 2 1 3 2
Im look to highlight numbers that are forming a pattern that is either a block ( 4 of the same number in a square basically), a row ( 3 of the same number in a row ) and 3 a line ( 3 of the same number vertically )
How do you specifically use this function or is there a simpler way to do it.

回答 (1 件)

Adam
Adam 2016 年 9 月 29 日
移動済み: Sabin 2023 年 1 月 29 日
bwconncomp operates on a binary matrix so you would have to binarise your matrix by some condition first and in this case you would need to do that for each number in order to use bwconncomp.
  2 件のコメント
Matlabhelp
Matlabhelp 2016 年 9 月 29 日
移動済み: Sabin 2023 年 1 月 29 日
Better of using a different method i guess, cheers for the advice
Image Analyst
Image Analyst 2020 年 8 月 25 日
移動済み: Sabin 2023 年 1 月 29 日
Original question in case he deletes is like he's done with other posts:
Hello
I'm having trouble using the bwconncomp for my specific matrix. here is an example of my matrix ( only a small selection out of a 20x20 matrix ). The matrix is named roundData
Columns 11 through 20
4 2 5 5 5 2 4 2 1 5
1 5 4 1 1 4 2 3 2 5
2 4 4 2 5 1 1 5 2 5
2 2 4 4 2 5 2 1 3 2
Im look to highlight numbers that are forming a pattern that is either a block ( 4 of the same number in a square basically), a row ( 3 of the same number in a row ) and 3 a line ( 3 of the same number vertically )
How do you specifically use this function or is there a simpler way to do it.

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

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by