For an assignment I am tasked with compressing an image. The assignment wants me to use a for loop and go through a quality vector it gave me.
[100:-10:10]
I have no clue how to go about compressing an image and everywhere I look I do not see anything about a quality vector. It also wants me to get the file size then save the images with seperate percentages of quality. I do not know what any of this means and I am looking for help.

3 件のコメント

KSSV
KSSV 2020 年 10 月 28 日
What is the size of image you have? You can use interp2, interp1.
James Eckloff
James Eckloff 2020 年 10 月 28 日
When I use getFilesize('Lena512,bmp') it says ans 263222. and 512x512 grayscale
James Eckloff
James Eckloff 2020 年 10 月 28 日
uint8 as well

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2020 年 10 月 28 日

0 投票

製品

リリース

R2020a

質問済み:

2020 年 10 月 28 日

コメント済み:

2020 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by