Today I implemented some strange filter: Sort zig-zag filter.
This filter works on gray scala images:

I was using these colors: #1c, #38, #54, #70, #8c, #a8, #c4, #e0, #fc.
The filter is creating array of all pixels:

And then it’s sorting this array:

On the last step filter is using zig-zag scheme to create image:

That was theory and now we will try it with the real image:
| Original | Gray | Color |
|---|---|---|
![]() |
![]() |
![]() |



