.jpgのカラー画像​を、.pngのグレー​スケール画像に変換す​る方法はありますか?​?

.jpgのカラー画像をグレースケール化して、バイナリーイメージに変換後、regionpropsやimbinarizeで使用する方法はありますか??

 Risposta accettata

Yoshio
Yoshio il 4 Ott 2019
Modificato: Yoshio il 4 Ott 2019

0 voti

とりあえず、rgb2grayを試されてはいかがでしょうか。
imreadを使えばjpg画像も読めますので、
等の例が参考になるかと思います。

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!