How to perform interpolation on a image (2D array)

  1. Make sure you have added "InterpolationLIB.dll" to your project
  2. Now we are ready to code. First, we need to declare and initialize input array


  3. Finally, we just call Do method from InterpolationLIB. Call static DO method of Interpolator class in which interpolation type can be set programmatically.


  4. Here's a screen-shot of the program output if we print input and output arrays to console




    Here is the complete source code of the program.


    Back





InterpolationLIB by Hasan Ayaz 2006