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.

Image Kernels explained visually

363 pointsby phodoalmost 9 years ago

10 comments

kragenalmost 9 years ago
This is super cool but it&#x27;s unfortunate that it clamps negative result values to black.<p>It&#x27;s probably worth mentioning that there are a lot of ways to implement convolution with a kernel, and the kernel can be of any size, not just 3×3. The explanation here shows how to implement the output-side algorithm nonrecursively; <a href="http:&#x2F;&#x2F;www.dspguide.com&#x2F;ch6&#x2F;3.htm" rel="nofollow">http:&#x2F;&#x2F;www.dspguide.com&#x2F;ch6&#x2F;3.htm</a> gives this for the one-dimensional case. But you can implement it on the input side instead (iterating over the input samples instead of the output samples), there are kernels that have a much more efficient recursive implementation (including zero-phase kernels using time-reversal), you can implement very large kernels if you can afford to do the convolution in the frequency domain, and there&#x27;s a whole class of kernels that have efficient sparse filter cascade representations, including large Gaussians.<p>(To say nothing of convolutions over other rings.)
评论 #12252052 未加载
评论 #12251331 未加载
评论 #12251930 未加载
gueloalmost 9 years ago
How are the kernels derived? Is it just an art where people play with the matrices to see their effects or is there well-understood math behind them?
评论 #12250376 未加载
评论 #12250200 未加载
评论 #12251204 未加载
评论 #12250289 未加载
评论 #12250615 未加载
评论 #12250347 未加载
评论 #12250760 未加载
评论 #12251294 未加载
Isamualmost 9 years ago
I don&#x27;t see image kernels compared to cellular automata, but that&#x27;s what they are. We just don&#x27;t iterate more than once or twice with a kernel, and the long-term evolution (stability, chaos, or more interesting dynamics) is not the concern here.<p>That is to say, there is more to cellular automata than the GOL, and one bit per cell.
评论 #12249989 未加载
评论 #12250616 未加载
评论 #12250397 未加载
besselheimalmost 9 years ago
The previous discussion has some good comments and links: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8966785" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8966785</a>
anjcalmost 9 years ago
Nice site. This would&#x27;ve been very helpful to me in college when I was trying to get an intuitive grasp of Gaussian blurs and so on via the formulas.
评论 #12250049 未加载
jomamaxxalmost 9 years ago
Man we need more articles like this.<p>So nice and clear.<p>I&#x27;ve been working with images for 12 years and I was never sure exactly what &#x27;sharpen&#x27; actually did ...
jscardellaalmost 9 years ago
This was an interesting article though I am not an image-o-phile. However, what I really like was the base site! I am a part time instructor for business students and I am teaching them about the power of visualization. This is an incredibly illustrative source that explains points well, and I&#x27;ll be able to use it as a teaching tool! Thanks for the post!
oyvkvaalmost 9 years ago
Really cool way to see how image kernels work.
kixpanganibanalmost 9 years ago
Wish we had this when I was taking Discrete Math and Numerical Methods back in college. Really neat visualization!
zk00006almost 9 years ago
Bug: 3x3 blur kernel, e.g. [1 1 1; 1 1 1; 1 1 1], outputs white image.