0
Quicksort BMP picture
How to write quick sort algorithm for sorting pixels by RGB value? Please help
2 ответов
+ 4
Heyy ,
what is the purpose for sorting pixels?
before everybody starts guessing what you expect, it would be helpful if you could make a sample from input and output data. we also need to know which priority with which the r- , g- abd b- channels are handeled. sorting multi channel color pixels is a multi criteria sorting.
+ 2
RGB values are generally numbers, so I guess it's possible doing something like a bubble sort:
Var temp = a
a = a + 1
a + 1 = temp
Maybe if you tag the language you want and add a code playground attempt, someone can help you more.