   Interpolation of image
  i have images of body part through ultrasound machine,i have some time less number of images i want to interpolate the other images from images i have,kindly tell me how i contract and interploate the image unkown form kown images,i will program in vc++.   
  I'm not that proficient with interpolation but I'd do it as follows:1. Specify the interpolation weight (percentage), i.e. where in between the two images you are.2. Add the images together pre-multiplying the pixel values with 1-weight and weight, e.g. for generating image C which is at 40% between A and B you would do  C = A * (1 - 0.4) + B * 0.4.There might be better approaches, but this should be something to start with.   ;  The above isn't a bad way to do basic interpolation.  It isn't great, but it isn't bad.  (It is a 'triangular' filter).This problem can get as complex as you care to make it -- you could spend a PhD researching ways to do it better.  So using a simple solution and getting it working is probably your best bet for a first iteration.Knowing what you are using the information for could be useful.The general case has you sampling a point that is somewhere in a box with 8 actual pixels on the vertexes of the cube.  You can do triangular filters in each dimension, and then repeat to get the 'actual sample'.;  you have any sample program or code or link in vc++that will help me   