Jump to content
  • Advertisement
Sign in to follow this  
usman1266

Interpolation of image

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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 this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!