Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"05-26-09 - Some Study of DCT coefficients"

7 Comments -

1 – 7 of 7
Blogger Dave Moore said...

I will win that argument by inexorable momentum. Victory will be mine!

May 27, 2009 at 9:48 AM

Blogger won3d said...

How exactly is DC weird? Just the way JPEG encodes it (DPCM?) , or it just intrinsically behaves differently from the AC coefficients?

May 27, 2009 at 10:30 AM

Blogger cbloom said...

"or it just intrinsically behaves differently from the AC coefficients?"

this.

For one thing you'd have to subtract off the global mean of the whole image or it would be scaled up by a huge bias.

If you delta DC from the neighboring DC's it acts more like the other coefficients, but then we're getting into details that I didn't want to involve in this test.

May 27, 2009 at 11:06 AM

Blogger ryg said...

I assume the grayscale values are in linear scale, i.e. 50% gray = a correlation with magnitude of 0.5?

In any case, this is really interesting. The DCT is really obviously very far off from the optimal decorrelating transform for these images. It'd be really interesting to see how these images look for prediction residuals when doing H264-style coding.

May 27, 2009 at 12:48 PM

Blogger cbloom said...

" I assume the grayscale values are in linear scale, i.e. 50% gray = a correlation with magnitude of 0.5?"

It's linear scale and actually gamma corrected, so apparent 50% brightness = correlation 0.5 (not pixel value 128).

Yeah, I agree it's somewhat shocking when you see it visually just how much correlation there is. These results are all pretty well known, but it clarifies things mentally to see the pictures.

May 27, 2009 at 1:36 PM

Anonymous Anonymous said...

aren't things like the number of zeroes going to depend heavily on the choice of quantizations? which are you doing here?

also, on the PCA blog post, the same issue crossed my mind: if you found the optimal transformation to some arbitrary basis, how would you quantize in that basis?

May 29, 2009 at 5:53 PM

Blogger cbloom said...

"aren't things like the number of zeroes going to depend heavily on the choice of quantizations? which are you doing here?"

I'm always doing uniform quantization here BTW.

Changing quantizer absolutely changes the # of zeros, but it shouldn't affect whether a value being zero is an independent event or not.

My comment about the typical cases is based on my belief that this type of coder should only be used in the 0.25 - 1.0 bpp range.

"also, on the PCA blog post, the same issue crossed my mind: if you found the optimal transformation to some arbitrary basis, how would you quantize in that basis?"

Well you're giving up any attempts at perceptual quantization at that point. Uniform quantization in any orthonormal basis is equivalent in an R-D sense.

There is the issue that when you quantize you wind up seeing the quantization shapes. How that turns out exactly in human perceptual error is hard to say (though personally I find the claims that DCT are good in this sense to be quite dubious).

May 29, 2009 at 6:37 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.