how to sort the data histogram: descending?
Posted: 2010-06-17T12:37:48-07:00
Please, I'm sorry for my English - translated text translator
I need to sort the data histogram: descending
Ie from
I need to get a txt file
tried
convert tree.gif-format% c histogram: info: - | sort-r-k 1
fails
if you do so
convert tree.gif-format% c histogram: info: - | sort
some sort - but ascending
Please tell my how to solve the problem.
And another question
possible to derive a txt file only the maximum number of pixels of one color
for this example - 20
I need to sort the data histogram: descending
Ie from
Code: Select all
15: (4, 4, 4.255) # 040404 rgba (4,4,4,1)
4: (7, 7, 7,255) # 070707 rgba (7,7,7,1)
20: (8, 8, 8.255) # 080808 grey3
Code: Select all
20: (8, 8, 8.255) # 080808 grey3
15: (4, 4, 4.255) # 040404 rgba (4,4,4,1)
4: (7, 7, 7,255) # 070707 rgba (7,7,7,1)
convert tree.gif-format% c histogram: info: - | sort-r-k 1
fails
if you do so
convert tree.gif-format% c histogram: info: - | sort
some sort - but ascending
Please tell my how to solve the problem.
And another question
possible to derive a txt file only the maximum number of pixels of one color
for this example - 20