.NET中的非仿射图像转换 [英] Non-Affine image transformations in .NET
问题描述
有没有.NET类库中的任何类,方法或者一般的算法都可以执行非仿射转换? (即不仅仅涉及旋转,缩放,平移和剪切的转换)
例如:
alt text http://i43.tinypic.com/2qlcyup.jpg
alt text http:// www.last100.com/wp-content/uploads/2008/01/iphone-maps.jpg
是否有另一个术语用于非仿射转换?
您发布的所有示例图像都可以通过四边形失真完成。虽然我无法确定四倍变形将覆盖所有非仿射变换。
继承人是C#中不太好的实现的链接...它起作用,但速度很慢。对维基百科进行各种不同的优化可用于这些计算
http://www.vcskicks.com/image-distortion.html
--eil
Are there any classes, methods in the .NET library, or any algorithms in general, to perform non-affine transformations? (i.e. transformations that involve more than just rotation, scale, translation and shear)
e.g.:
alt text http://i43.tinypic.com/2qlcyup.jpg
alt text http://www.last100.com/wp-content/uploads/2008/01/iphone-maps.jpg
Is there another term for non-affine transformations?
All of the example images you posted can be done with a Quadrilateral Distortion. Though I cant say for certain that a quad distort will cover ALL non affine transforms.
Heres a link to a not so good implementation of it in C#... it works, but is slow. Poke around Wikipedia for the many different optimizations available for these kinds of calculations
http://www.vcskicks.com/image-distortion.html
-Neil
这篇关于.NET中的非仿射图像转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!