Live data from Hacker News

Make photomosaics, GIFs, and murals from pictures in Python with ML/OpenCV

github.com

21–23 of 23 posts

Re: Make photomosaics, GIFs, and murals from pictures in Python with ML/OpenCV

#21

Is the example image ( https://github.com/worldveil/photomosaic/blob/master/media/r... ) with or without opacity cheat?

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

Re: Make photomosaics, GIFs, and murals from pictures in Python with ML/OpenCV

#22
post #3

I'm not an expert in the topic, but my understanding is RGB is a poor color space for computing color difference. This could be why your mosaics end up so washed out. [1] suggests using a CIELAB color space [2]. Edit: Looking at the code more closely it looks like you were using Lab at one point but commented it out[3], so I'm guessing you're already aware of this. 1: https://stackoverflow.com/a/9019461/185171 2: htt…

It didn’t make a ton of difference empirically when I tried it. But you’re correct, generally that’s the space you want to be in.

there is no perfect way to measure color distances, mostly because it needs to account for human perception of color and there are individual differences in color perception among people.
Post reply on HN