画像の2値化の方法
84 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
imbinarizeを用いて2値化しようとしているのですが、やり方がわからなくなってしまいました。 また閾値も変更できるようなコードはございますか。
0 commentaires
Réponse acceptée
Shunichi Kusano
le 7 Jan 2021
こんにちは。
公式ドキュメントに使い方が詳しく書いていますので、ご覧いただくといいと思います。
もし画像に対して1つのしきい値で二値化される場合でしたら、
BW = A > th; % Aは画像配列、thはしきい値
も簡単です。
Plus de réponses (1)
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!