Starting Situation: I have a distorted image, for example a geographic map with a grid. The distortion is of that kind: At the top of the map 10° geographic latitude correspond to 30 px, but at the bottom of the image 10° latitude correspond to only 10 px.
Aim: Now I want to scale the image, that 10° latitude correspond to let's say 20 px all over the image.
Let me illustrate the problem a litte more:
Starting situaiton: Image with an overall height of 100 px:
Area 1 - 30 px height
Area 2 - 25 px height
Area 3 - 20 px height
Area 4 - 15 px height
Area 5 - 10 px height
Aim: Image overall height stays constant (100 px), but now the areas should be of equal height:
Area 1 - 20 px height
Area 2 - 20 px height
Area 3 - 20 px height
Area 4 - 20 px height
Area 5 - 20 px height
If this can be achieved with other software than imagemagick, hints are welcome, too. Thanks for your replies in advance.