DNG形式の画像を読み込みたい
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
裕大 豊永
el 25 de Nov. de 2021
Comentada: Kojiro Saito
el 3 de Dic. de 2021
元の画像に付属していたデータなどが失われない方法でDNG形式の画像を読み込みたいのですが、そのための関数や方法などは存在しますか?それとも、RAW画像を読み込むときの要領でも可能でしょうか?
0 comentarios
Respuesta aceptada
Kojiro Saito
el 30 de Nov. de 2021
非圧縮のDNG画像でしたら、imread、imfinfoなどが使えます。
R2021bで試しましたが、
info = imfinfo("xxx.DNG"); % メタ情報を取得
info2 = rawinfo("xxx.DNG"); % Image Processing Toolboxがあればこちらでメタ情報取得も可能
im = imread('xxx.DNG'); % 画像を取得
imshow(im) % 画像を表示
で問題無さそうでした。
もし圧縮されたDNG画像の場合、こちらの回答のように、Adove DNG Converterで非圧縮画像にしてもらう必要があるようです。
2 comentarios
Kojiro Saito
el 3 de Dic. de 2021
File Exchangeでdcrawを使うサンプルもありますが、R2021bでネットに転がっているDNGのサンプル画像で試してみたら、MATLABの標準関数のimread、imfinfo、imshow、あるいはImage Processing Toolboxのrawinfoだけでいけました。
Más respuestas (0)
Ver también
Categorías
Más información sobre インストールとライセンスの紹介 en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!