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.

Alpha Compositing

118 pointsby dhotsonalmost 6 years ago

7 comments

jacobolusalmost 6 years ago
&gt; <i>While describing a pixel as a little square is frowned upon in a world of signal processing, in some contexts it is a useful model that lets us calculate an accurate coverage of a pixel by the vector geometry</i><p>I wish people would try to calculate the coverage of some other reconstruction filter instead of just separate little squares. I’m not convinced it would be more expensive, and would hopefully give better results (less griddy artifacts, better spatial resolution), especially for images that will be rotated or resampled later.<p>If we assumed a radially symmetric kernel, then coverage would just be some monotonic function of the distance from the pixel center to the edge, and this function could be approximated using some low-degree polynomial and computed very quickly.<p>(Maybe this has been done?)
评论 #20532128 未加载
评论 #20530780 未加载
daxterspeedalmost 6 years ago
On that last note about alpha compositing I really wish there was a way to opt into correct alpha composting on the web. Colors deserve more love!
评论 #20530179 未加载
ginkoalmost 6 years ago
Sadly no mention of gamma correction, which is where many implementations of alpha blending fail.
评论 #20526091 未加载
dguaragliaalmost 6 years ago
Beautifully written and illustrated article. The live examples are perfect. Back when I was in university this is what we imagined the future of technical literature would look like.
prideoutalmost 6 years ago
Really nice and thorough article.
sp332almost 6 years ago
<i>One approach is to use four sample points which lets us represent four different levels of coverage: 0, 1⁄3, 2⁄3, and 1:</i><p>Four samples actually gives you five levels depending on how many points are covered: 0, 1, 2, 3, 4. So these correspond to quarters, not thirds.
rotexoalmost 6 years ago
nice. already giving me some ideas for my silly little python-and-bird-video experiments (<a href="https:&#x2F;&#x2F;www.instagram.com&#x2F;reductionist_earth_catalog&#x2F;?hl=en" rel="nofollow">https:&#x2F;&#x2F;www.instagram.com&#x2F;reductionist_earth_catalog&#x2F;?hl=en</a>). I was using the built-in compositing in pillow (PIL fork), but maybe I should try rolling my own alpha compositing module using numpy.
评论 #20530737 未加载