二维码图像透视变换将图像校正

djjerduo 2015-04-15 04:00:30

哪位大神能够帮忙把这个图像校正一下,用透视变换,万分感谢!!
...全文
744 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
kite289 2015-04-15
  • 打赏
  • 举报
回复
有的点人眼看都会误判。
赵4老师 2015-04-15
  • 打赏
  • 举报
回复
楼主这个图分辨率太低。 Rotating, Reflecting, and Skewing Images -------------------------------------------------------------------------------- You can rotate, reflect, and skew an image by specifying destination points for the upper-left, upper-right, and lower-left corners of the original image. The three destination points determine an affine transformation that maps the original rectangular image to a parallelogram. (The lower-right corner of the original image is mapped to the fourth corner of the parallelogram, which is calculated from the three specified destination points.) For example, suppose the original image is a rectangle with upper-left corner at (0, 0), upper-right corner at (100, 0), and lower-left corner at (0, 50). Now suppose we map those three points to destination points as follows. Original point Destination point Upper-left (0, 0) (200, 20) Upper-right (100, 0) (110, 100) Lower-left (0, 50) (250, 30) The following illustration shows the original image and the image mapped to the parallelogram. The original image has been skewed, reflected, rotated, and translated. The x-axis along the top edge of the original image is mapped to the line that runs through (200, 20) and (110, 100). The y-axis along the left edge of the original image is mapped to the line that runs through (200, 20) and (250, 30). The following example produces the images shown in the preceding illustration. Point destinationPoints[] = { Point(200, 20), // destination for upper-left point of original Point(110, 100), // destination for upper-right point of original Point(250, 30)}; // destination for lower-left point of original Image image(L"Stripes.bmp"); // Draw the image unaltered with its upper-left corner at (0, 0). graphics.DrawImage(&image, 0, 0); // Draw the image mapped to the parallelogram. graphics.DrawImage(&image, destinationPoints, 3); The following illustration shows a similar transformation applied to a photographic image. The following illustration shows a similar transformation applied to a metafile. --------------------------------------------------------------------------------

64,660

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧