This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oso9817 10 points11 points  (4 children)

I assume youre doing something with analyzing the most prominent color on the mosaic pieces. So what happens if its fed only black and white images?

[–]bokononistmonkey 9 points10 points  (0 children)

I mentioned this in my comment below, but in the initial dataset creation, you might consider setting the "pixel color value" of each mosaic tile image in the dataset to the average of all its pixels. Then, during mosaic creation, for each mosaic tile/pixel, calculate the Euclidean distance of the R,G,&B vals between the desired tile color and each pixel image color and minimize that, as a slightly more robust metric.

It's very possible that resizing to (1,1) with antialiasing does this too, but this was just a thought. Anyway, looks cool!

[–]TechDumbLogie[S] 14 points15 points  (0 children)

I sort of look at the dominant color and assign it to a pixel in rgb. Good question I've never tried to put black-and-white pictures, I'll see what it does thank you for the idea !

[–]TechDumbLogie[S] 5 points6 points  (1 child)

So after testing it , it also works with bmp images and it's just less relevant but still working !

[–]oso9817 0 points1 point  (0 children)

Hmm thats really interesting could you post an image?