Technical Details of Morphing |
Top Previous Next |
Morphing is a word that describes a mathematical process used to warp images based on the on the positions of pairs of lines. Normally, the process is performed on bitmap images. The process compares the positions of the line pairs and moves the pixels based on the differences in the positions of the lines. For example, if the second line is rotated relative to the first, the pixels near the line will be rotated.
The standard Morphing technique was pioneered by in a paper by Thaddeus Beier and Shawn Neely in a paper called "Feature-Based Image Metamorphosis". (It is currently available on line here: http://www.hammerhead.com/thad/morph.html). David McKenzie pioneered the concept of using this morphing technique in cave maps with his Walls program. The technique measures the position of an object relative to a survey line and tries to maintain that relationship if the line moves. Since there are dozens or hundreds of lines in a cave survey, all the lines may have an effect on each object. If all the lines move together, then all the objects will move exactly like the lines. For example, if the cave is moved, the objects will move exactly the same amount. On the other hand, there may be times when all the survey lines do not move in exactly the same way. For example, if an error has been corrected in the survey, some lines will move and others will not. If this happens, the program has to sort out which lines effect which objects. This is done with a weighting system that weights the effect of each line on each object. The weighted effect of each line is then averaged and applied to each object. The weights are based on the Length of the Line, the Distance from the object and Precision required. Here is the weighting equation: Weight = ((Length ^ P) / (A + Distance))^B Where: Length = Length of the Line Distance = Distance of Object From Line A = Controls Precision P = Control Effect of Line Length B = Control Effect of Distance. For more detailed information about the process, refer the article described above.
|