필터 지우기
필터 지우기

How to reduce image size before saving into .mat file

조회 수: 4 (최근 30일)
Abdurrehman
Abdurrehman 2018년 7월 28일
편집: KALYAN ACHARJYA 2018년 7월 30일
I am capturing images from cell phone camera and saving it to .mat file. Due to high resolution .mat file size become high and takes more time when processing on it. How to reduce image size before saving in .mat file so that image should not be more then few kbs without loosing image information. thanks
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 28일
편집: KALYAN ACHARJYA 2018년 7월 28일
Without loss of information, size reduction is not possible. It depends on a trade-off between desired size and information loss
Rik
Rik 2018년 7월 28일
Not entirely: it is a trade-off between size, information and processing power. A strong compression will probably require much processing power, which is not what you want if you are on mobile.

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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 28일
편집: KALYAN ACHARJYA 2018년 7월 28일
imresize(phone_image,scale); %Decide scale as per your requirements.
%Scale-0 to 1, less values means more resize, automaticall size reduce
  댓글 수: 3
Abdurrehman
Abdurrehman 2018년 7월 28일
Thanks for the answer, it seems rsetwrite works with .tif only? do we have similar function for .png and .jpg ?
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 30일
편집: KALYAN ACHARJYA 2018년 7월 30일
I will check.

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

Community Treasure Hunt

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

Start Hunting!

Translated by