Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の情報で画像を変換する方法: ColorType: truecolor Format: png bitDepth: 24
matlabでビット深度= 8のpngグレースケール画像に?
のドキュメントからimwrite
imwrite
カラー イメージの場合、BitDepth 値はプレーンあたりのビット数です。
matlab に 3 つのカラー チャネルをそれぞれ 8 ビットで書き込むように要求すると、結果は 24 ビットになります。グレースケールが必要な場合は、rgb2gray最初に を使用してグレースケールに変換してから書き込みます。
rgb2gray