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

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

 採用された回答

Yoshio
Yoshio 2019 年 10 月 4 日
編集済み: Yoshio 2019 年 10 月 4 日

0 投票

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

その他の回答 (0 件)

製品

質問済み:

2019 年 10 月 4 日

編集済み:

2019 年 10 月 4 日

Community Treasure Hunt

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

Start Hunting!