Conversation

Suppose I have an image and want to show the distribution of colours in that image. Obviously, I can sort the pixels in a line and be done. But what if I wanted to preserve the original photo's dimensions, while minimising the colour distance across neighbouring pixels in both dimensions?

2
0
0

I'm thinking there has to be some obvious way to project the colour space onto two dimensions already, maybe this is a good start

0
0
0
@addison something something cosine transform?
1
0
0

@buherator@infosec.place How would that be applied? My goal is to simply rearrange the pixels, this seems more like signal processing.

1
0
0
@addison TBH I just vaguely remember that cosine transform is useful for compression because it tends to group similar values together, and it also works in 2D so it was the first thing that came to my mind, but it's been a looong time since I touched anything related.
1
0
0

@buherator@infosec.place I'll start looking at compressors using this and see if I find anything, thanks!

0
0
0