Re: Quality factor and bits per pixel in JPEG
- From: "fulltime" <PiaoChieh@xxxxxxxxx>
- Date: 23 Mar 2007 22:39:11 -0700
On Mar 24, 10:45 am, "fulltime" <PiaoCh...@xxxxxxxxx> wrote:
On Mar 24, 2:30 am, Thomas Richter <t...@xxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
fulltime <PiaoCh...@xxxxxxxxx> wrote:
You really just need to do it iteratively.
If you're doing this on many images you could plot a curve
of file size versus quality factor for a variety of images, and use that
to get you close to the final value based on the file size that
results from an initial quality factor. Otherwise, just try it with
various quality factors to get the file size you need.
This is exactly the point. JPEG-1 doesn't have a rate allocation,
and you really need to try to find a "quality factor" that gives
you the output rate. This quality factor is then used by an
"ad-hoc" formula to compute the quantization factors.
For the grayscale image i mentioned above, 8bits are needed to
represent each pixel, so am i correct to say its 8bpp?
Yes.
To attain say
0.5bpp, given 512 by 512 pixels, i will need the file size to be of
(512*512) / 2 bits??
Exactly. Divide by eight to get the number of bytes.
another qn is the file size we are talking abt here is the number of
bits tat we need to encode the JPEG image right?
Yes.
As a rule of thumb, a "sane" image compression scheme should approximately
improve the image quality (as in PSNR) by 6dB per bit (as in bpp) which
allows you at least to get an initial guess on how the graph should look
like. JPEG-1 isn't quite that sane (the slope is too low), but it's close.
Greetings,
Thomas
thks Peter and Thomas. I will proceed w my work and will post here
shld i encounter any problems. U guys are so willing to share your
knowledge :)
Hi gentlemen,
I have another 2 questions regarding quality factor.
to quantize a coefficient with a quality factor, Qs, it is =
Coefficient / (Quant Matrix Value * Qs)
1) i have been searching the net and people are talking about a
quality factor of 0 to 100 with 100 being the best quality. So for
quality of 100, does tat mean Qs = 1 in the eqn and Qs=0.5 for a
quality of 50?
2) how is this Qs going to reduce the file size, since if Qs is small,
it will require more bits to quantise the coefficient?
thks for solving my doubts
FT
.
- Follow-Ups:
- Re: Quality factor and bits per pixel in JPEG
- From: Thomas Richter
- Re: Quality factor and bits per pixel in JPEG
- From: Pete Fraser
- Re: Quality factor and bits per pixel in JPEG
- References:
- Quality factor and bits per pixel in JPEG
- From: fulltime
- Re: Quality factor and bits per pixel in JPEG
- From: Pete Fraser
- Re: Quality factor and bits per pixel in JPEG
- From: fulltime
- Re: Quality factor and bits per pixel in JPEG
- From: Thomas Richter
- Re: Quality factor and bits per pixel in JPEG
- From: fulltime
- Quality factor and bits per pixel in JPEG
- Prev by Date: Re: Quality factor and bits per pixel in JPEG
- Next by Date: Re: Quality factor and bits per pixel in JPEG
- Previous by thread: Re: Quality factor and bits per pixel in JPEG
- Next by thread: Re: Quality factor and bits per pixel in JPEG
- Index(es):
Relevant Pages
|
|