Stretching algorithm

Started by
1 comment, last by Harvester 23 years, 6 months ago
hey, anyone has tips/info/links on how to build a stretching algorythm? Something like StretchBlt. Thanks
... LEMMINGS ... LEMMINGS ... LEMMINGS ... LEM..... SpLaSh!...Could this be what we stand like before the mighty One?Are we LeMmIngS or WhAt!? ;)
Advertisement
You should look at the interpolation examples in one of the DSP-Tutorials. It is basically the same, except that images are 2D-Data and sound is 1D-Data.
You could stretch down the x-axis first and then along the y-axis or vice versa.
The one i developed seems to work. What i did was to calculate how many lines where to be removed/added, and then using a simple blur method to remove/add ''em, in equal intervals. It appears to work...

BTW: thanks fot the link. i''ll check it out today
... LEMMINGS ... LEMMINGS ... LEMMINGS ... LEM..... SpLaSh!...Could this be what we stand like before the mighty One?Are we LeMmIngS or WhAt!? ;)

This topic is closed to new replies.

Advertisement