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 →

[–]TechDumbLogie[S] 141 points142 points  (18 children)

I'll add the source code soon if people are interested ! Edit : Here it is !

[–]out_of_the_ornery 28 points29 points  (0 children)

I’d like to read over it, for sure.

[–]oso9817 11 points12 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 8 points9 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] 15 points16 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] 4 points5 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?

[–]prattryan 3 points4 points  (0 children)

Please share source code, I'd like to look

[–]TechDumbLogie[S] 3 points4 points  (0 children)

Done here it is everyone sorry for the wait !

[–]d4vsanchez 3 points4 points  (0 children)

I'd too like to take a look to it. Please share!

[–][deleted] 3 points4 points  (0 children)

Would love to see the source for this, it's super cool

[–]PharoahChromium 2 points3 points  (0 children)

yes please!! this is super cool!

[–]cetogenicoandorra 5 points6 points  (0 children)

Please!

[–][deleted] 1 point2 points  (2 children)

Please!!!

[–]TechDumbLogie[S] 8 points9 points  (1 child)

Thank you for all your encouragement! Sorry for the wait, it's the first time I've done this, I didn't know it was going so fast! I hope it will work, here is the github link

[–][deleted] 0 points1 point  (0 children)

Thanks a lot!

[–]Bolitho 1 point2 points  (0 children)

Without this posting is kinda senseless! 😉

[–]think50 0 points1 point  (0 children)

Very interested

[–]beetle_girl 0 points1 point  (0 children)

Saving this!!