i have a 128×128 array of elevation data (elevations from -400m to 8000m are displayed using 9 colors) and i need to resize it to 512×512. I did it with bicubic interpolation, but the result looks weird. In the picture you can see original, nearest and bicubic. Note: only the elevation data are interpolated not the colors themselves (gamut is preserved). Are those artifacts seen on the bicubic image result of my bad interpolation code or they are caused by the interpolating of discrete (9 steps) data?
Share
There must be something wrong with the bicubic code you’re using. Here’s my result with Python:
The black border around the outside is where the result was outside of the palette due to ringing.
Here’s the program that produced the above:
Edit: Evidently Python’s Bicubic isn’t the best either. Here’s what I was able to do by hand in Paint Shop Pro, using roughly the same procedure as above.