0

Quicksort BMP picture

How to write quick sort algorithm for sorting pixels by RGB value? Please help

20th Jul 2022, 7:27 PM
Heyy
2 Answers
+ 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.
20th Jul 2022, 9:01 PM
Lothar
Lothar - avatar
+ 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.
20th Jul 2022, 8:41 PM
Ausgrindtube
Ausgrindtube - avatar