データのノイズ除去
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
下の配列の9行と13行2列と15行15列のような行ごとに見た時のデータの穴や外れ値を検出してきれいな輪郭線になるように揃えたいです。
filloutliersなどでいろいろ試したのですがメソッドの指定などがよくわからなくて断念しました。
何かいい方法があったら教えていただきたいです。

3 commentaires
Naoya
le 27 Juil 2023
上で作成された検証データ a に対して、以下のような形態学的演算でご所望に近い結果が得られそうですがいかがでしょうか?
% 0に囲まれた 1 を 0 に変える (独立点の削除)
a = bwmorph(a,'clean')
% 連結していない2つの非ゼロ近傍をもつ場合、連結されていないピクセルを1に変える
a = bwmorph(a,'bridge')
bwmorph関数のご利用には Image Processing Toolbox が必要になります。
Réponses (0)
Voir également
Catégories
En savoir plus sur モルフォロジー演算 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!