ZX News #03
28 февраля 1997 |
|
morph pictures - The effect of soft peretikaniya one image to another.
(C) 1997 Bob Klubov MORPH: how it's done. Let us remember the good old days. When INSULT considered top arts and all fell from its effects. Was there one prikolchik - MORPH said. In this article we will try to figure out the principle of his work (or rather not quite it, but my implementation MORPH'a). What is the MORPH? MORPH (as claimed by the TSB), the word foreign. More than anything she could not tell. Will have define yourself. Um ... Well ... MORPH - is the effect of soft flowing one image to another. At least, he looks like. Attached you find Dete program to Thoraya morfiruet iso mapping as indicated on the left. Now about the algorithm works. 1. Read into memory are the two images: the initial and final images. 2. Scan the two images and create a Memory tables are included pixels 3. Believe their numbers. 4. If one of the images pixels less, then we bring the number up more by random choice pa from the existing ones. 5. Mix the coordinates of all points randomly. 6. We take the coordinates of the first points of the first first and second screens, we compute the distance between them - S. Partition Vai a way to (the number of frames - a) parts. At each frame point of the first screen tends to be mitsya to the point of the second screen given step. 7. Moving the point of a given number of cadmium moat. The program, which is attached to the magazine has all the necessary comments. ____________________________________
Other articles:
Similar articles:
В этот день... 21 November