Check out below code.
Code: Select all
convert test.png -level 0,1000 levelP.png
convert test.png +level 0,1000 levelM.png
How to use +level(reverse level adjustment) using C?
Code: Select all
convert test.png -level 0,1000 levelP.png
convert test.png +level 0,1000 levelM.png