# Interpolation of image

This topic is 3492 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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++.

##### Share on other sites
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.

##### Share on other sites
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'.

##### Share on other sites
you have any sample program or code or link in vc++that will help me

1. 1
2. 2
3. 3
Rutin
14
4. 4
frob
12
5. 5

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633670
• Total Posts
3013262
×