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 color replacement with numerical optimization

78 pointsby andersourcealmost 4 years ago

6 comments

mauritsalmost 4 years ago
Pretty clever. Somewhat related, if you want to match the colours of an entire image to an other, you can use optimal transport [1]<p>Unrelated, the author has a very nice take on generating the organic grid from Oskar Stålberg’s Townscaper game [2].<p>[1]: <a href="https:&#x2F;&#x2F;codimd.math.cnrs.fr&#x2F;s&#x2F;2eRBqV9zl" rel="nofollow">https:&#x2F;&#x2F;codimd.math.cnrs.fr&#x2F;s&#x2F;2eRBqV9zl</a><p>[2]: <a href="https:&#x2F;&#x2F;andersource.dev&#x2F;2020&#x2F;11&#x2F;06&#x2F;organic-grid.html" rel="nofollow">https:&#x2F;&#x2F;andersource.dev&#x2F;2020&#x2F;11&#x2F;06&#x2F;organic-grid.html</a>
评论 #27699192 未加载
评论 #27711277 未加载
评论 #27699780 未加载
评论 #27699391 未加载
tyingqalmost 4 years ago
A more pedestrian imagemagick script that uses a &quot;fuzz value&quot; that&#x27;s a number of degrees on a hue wheel instead:<p><a href="http:&#x2F;&#x2F;www.fmwconcepts.com&#x2F;imagemagick&#x2F;replacecolor&#x2F;index.php" rel="nofollow">http:&#x2F;&#x2F;www.fmwconcepts.com&#x2F;imagemagick&#x2F;replacecolor&#x2F;index.ph...</a>
kirillcoolalmost 4 years ago
&quot;Flowers replaced to red&quot; looks like it also tinted the whole sky red. In general, all the image captions imply that the algorithm is able to identify objects (flowers, ice cream scoop, shirt) and only change that object&#x27;s color.
评论 #27699053 未加载
评论 #27700032 未加载
adampkalmost 4 years ago
Sorry for the noob question but reading through this I can&#x27;t make sense of why this is the desired transformation:<p>&quot;Desired transformation: σ(σ(IT)N)&quot;<p>What is I, T, and N?
评论 #27703147 未加载
pajkoalmost 4 years ago
Also there is <a href="https:&#x2F;&#x2F;www.cs.huji.ac.il&#x2F;~yweiss&#x2F;Colorization&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cs.huji.ac.il&#x2F;~yweiss&#x2F;Colorization&#x2F;</a><p>Had implemented a Khoros filter box based on this for my Computer Graphics class back then.
danukeralmost 4 years ago
Very interesting! They look a bit surreal, as if inverted maybe.
评论 #27698743 未加载