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.

Depixelizing Pixel Art Android App

1 pointsby tosicabout 11 years ago

1 comment

tosicabout 11 years ago
We implemented the &quot;Depixelizing Pixel Art&quot; Algorithm by Kopf &amp; Lischinski [1] in Java and made an Android Pixel-Painter App out of it.<p>At some points we departed a bit from the original paper:<p>For the (approximate) Voronoi diagram we do not use a lookup table but look at the orientation of each neighboring edge to determine the resulting pixel shape because of that we have a special step that makes cell containing a single pixel surrounded by another color a bit bigger, as otherwise single pixel features appear too small (e.g. the dolphin from the original paper would otherwise get tiny Howard-Moon-Style eyes) we use Catmull-Rom Splines instead of B-Splines. As CR Splines go through their control points, we do not need the correction step for spline positions mentioned in the paper.<p>We have not figured out how to add the shading for non-contour edges yet. SVG (which is our target format) only allows Radial and Linear Gradients. We thought about using Mesh Gradients or diffusion curves, but they are not part of SVG yet... Also, the energy minimization step is still quite slow. We use local relaxation as recommended in the paper, which works but is not very fast. We want to try out some global methods that will hopefully speed the process up.<p>What do you think?<p>[1] (<a href="http://research.microsoft.com/en-us/um/people/kopf/pixelart/" rel="nofollow">http:&#x2F;&#x2F;research.microsoft.com&#x2F;en-us&#x2F;um&#x2F;people&#x2F;kopf&#x2F;pixelart&#x2F;</a>)