TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ara Agui Nakajima DCT compression algorithm

21 pointsby muragekibicho3 months ago

3 comments

szvsw3 months ago
The first time I used L1 regularization to recover a sparsely sampled signal’s DCT coefficients my mind was blown. If you’ve never tried it out, you should, it’s pretty crazy! The power of priors and choosing the appropriate inductive bias…<p>The classic learning example is to take a couple of sine waves at high frequencies, add them together, sample the summation at a very low frequency (so that the signals are way above the nyquist sample rate) or better yet just randomly at a handful of points, and then turn it into an optimization problem, where your model parameters are the coefficients of the DCT of the signal; run the coefficients through the inverse transform to recover a time domain signal, and then compute a reconstruction error at the locations in the time domain representation for which you have observed data, and then add an L1 penalty term to request that the coefficients be sparse.<p>It’s quite beautiful! All sorts of fun more advanced applications but it’s quite awesome to see it happen before your own eyes!<p>My personal signals &amp; systems knowledge is pretty novice level but the amount of times that trick has come in handy for me is remarkable… even just as a slightly more intelligent data imputation technique, it can be pretty awesome! The prof who taught it to me worked at Bell Labs for a while, so it felt a bit like a guru sharing secrets, even though it’s a well documented technique.
评论 #43162285 未加载
nayuki3 months ago
I implemented the AAN 8-point DCT algorithm some years ago: <a href="https:&#x2F;&#x2F;www.nayuki.io&#x2F;page&#x2F;fast-discrete-cosine-transform-algorithms" rel="nofollow">https:&#x2F;&#x2F;www.nayuki.io&#x2F;page&#x2F;fast-discrete-cosine-transform-al...</a>
bob10293 months ago
libjpegturbo uses this one for its fast variant of the DCT.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;libjpeg-turbo&#x2F;libjpeg-turbo&#x2F;blob&#x2F;36ac5b847047b27b90b459f5d44154773880196f&#x2F;src&#x2F;jfdctfst.c#L18-L33">https:&#x2F;&#x2F;github.com&#x2F;libjpeg-turbo&#x2F;libjpeg-turbo&#x2F;blob&#x2F;36ac5b84...</a>