画像の2値化の方法
76 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
imbinarizeを用いて2値化しようとしているのですが、やり方がわからなくなってしまいました。 また閾値も変更できるようなコードはございますか。
0 Kommentare
Akzeptierte Antwort
Shunichi Kusano
am 7 Jan. 2021
こんにちは。
公式ドキュメントに使い方が詳しく書いていますので、ご覧いただくといいと思います。
もし画像に対して1つのしきい値で二値化される場合でしたら、
BW = A > th; % Aは画像配列、thはしきい値
も簡単です。
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu イメージ タイプの変換 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!