News for hackers. Stuff that matters.
Re:Show HN: Reorganize pixels of a painting into a smooth co... by pavel_lishin on Thursday November 10, 2016 @02:04PM (#12923188)
I think there's a bug in there that flipped a few columns - but I actually really like the output better that way: http://imgur.com/RErXOF6
Re:Show HN: Reorganize pixels of a painting into a smooth co... by dontreact on Thursday November 10, 2016 @02:10PM (#12923237)
That is weird. It decides to flip a column by summing up the vector distances between the pixels in that column vs. the pixels in the previous column. I'm wondering if that since there is so much gray in the painting, this causes a large accumulation of error in gray vs. slightly different gray which outweighs the orange vs gray.

I do know that euclidean distance in RGB space is not that great a metric for perceptual similarity. Perhaps everything should be done in YUV instead? I will try tonight. Thanks.

Re:Show HN: Reorganize pixels of a painting into a smooth co... by iverjo on Thursday November 10, 2016 @02:24PM (#12923373)
I recommend you to try the LAB color space and to use delta E 94 [1] for computing distances between colors in the color space

[1] https://en.wikipedia.org/wiki/Color_difference#CIE94