Hacker News new | ask | show | jobs
by fireattack 2740 days ago
Is the example image (https://github.com/worldveil/photomosaic/blob/master/media/r...) with or without opacity cheat?
2 comments

Both! You can experiment with —-best-k and —randomness <1.0 and sort of get things in the middle.

Basically what this will do is assign each tile less than 100% of the time randomly and then for each that isn’t, you choose among the top best K matches on L2 distance with equal probability. Gives it a little bit of both.

I'm talking about `--opacity` - because to me the mosaic images used in the sky can't be that blue originally.
Right. The opacity setting is superimposed after the tile assignment. Thus you can have both.

I’ve found that opacity if 0.7 is often a nice compromise.

Yeah that's using opacity, e.g. there's an image of a blue horizon that gets tinted red.