How to import ".heic" image file of Apple phone by matlab?

조회 수: 107 (최근 30일)
cui,xingxing
cui,xingxing 2021년 9월 30일
이동: Walter Roberson 2023년 10월 20일
I have a lot of ".heic" image files taken by Apple phones, and I want to read them into matlab to analyze them, but it seems that the imread function does not support this kind of format. Is there any way to do this in matlab? thanks in advance!
os: win10
matlab2021a
  댓글 수: 5
Walter Roberson
Walter Roberson 2021년 10월 1일
We recommend against using jpg for serious analysis. Use a lossless format such as png or tiff
DGM
DGM 2021년 10월 1일
Afaik, HEIC is normally lossy (with a lossless option), so that bridge has probably already been burned. Of course, I'm not saying that compounding the damage by using JPG would be good (hence my comment on conversion), but I just thought it's worth noting that (some) damage has (probably) already been done.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2022년 3월 22일
I've also used ImageMagick, at the suggestion of people on the Mathworks Image Processing toolbox team. I got the images from someone with a iPhone who didn't know she had options for how to format the image for sending. She could have used a different format but HEIC was the default. She didn't need to resnap, just needed to adjust some settings before transmitting, like this:
It’s easy on the Mac. For interactive use, use the Preview app to export any image to another format. For command-line scripting, use /usr/bin/sips.
For iPhone users, change a setting in order to share photos as JPEG rather than HEIC:
Settings -> Photos -> Transfer to Mac or PC -> Automatic
The IPT team knows about the issue (for a long time now) and it's on their to-do list. In fact many of them use Apple products. They said that requests sent in to support@mathworks.com influence their priority list, so let's have everyone send in their request to have read (especially) and write capability for HEIC format image files.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by