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

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

 Accepted Answer

Yoshio
Yoshio on 4 Oct 2019
Edited: Yoshio on 4 Oct 2019

0 votes

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

More Answers (0)

Categories

Products

Asked:

on 4 Oct 2019

Edited:

on 4 Oct 2019

Community Treasure Hunt

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

Start Hunting!