画像の2値化の方法
84 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
imbinarizeを用いて2値化しようとしているのですが、やり方がわからなくなってしまいました。 また閾値も変更できるようなコードはございますか。
0 Commenti
Risposta accettata
Shunichi Kusano
il 7 Gen 2021
こんにちは。
公式ドキュメントに使い方が詳しく書いていますので、ご覧いただくといいと思います。
もし画像に対して1つのしきい値で二値化される場合でしたら、
BW = A > th; % Aは画像配列、thはしきい値
も簡単です。
Più risposte (1)
Vedere anche
Categorie
Scopri di più su イメージ タイプの変換 in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!