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

9 views (last 30 days)
Nagae Ryoya
Nagae Ryoya on 4 Oct 2019
Edited: Yoshio on 4 Oct 2019
.jpgのカラー画像をグレースケール化して、バイナリーイメージに変換後、regionpropsやimbinarizeで使用する方法はありますか??

Accepted Answer

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

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!