乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 92|回复: 5

如何纠正平面jpe图像上的方格网线条不规则变形

[复制链接]

85

主题

128

帖子

7

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
468
发表于 2009-9-2 18:37:00 | 显示全部楼层 |阅读模式
一个10cm*10cm的图形,在用照相机拍摄后的图像上四条边框成了任意四边形,内部1cm*1cm的小方格也随着变形了。
如何将图像纠正成原来的10cm*10cm的图形,内部也成1cm*1cm的方格。
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2009-9-2 19:33:00 | 显示全部楼层
图像纠正还真没做过:)
不过你最好贴图详细说明下
回复

使用道具 举报

gyl

15

主题

127

帖子

7

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
187
发表于 2009-9-23 13:38:00 | 显示全部楼层
如何在程序中得到CAD中插入的光栅图像啊?只有获得图像数据,才能通过图像处理算法来纠正图像。
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2009-9-23 15:58:00 | 显示全部楼层
可以看下RasterImageDef类的OpenImage函数
开发文档的解释
Returns the associated image data object for writing. (See ATIL documentation for information about the Atil.Image class.) Each call to OpenImage must eventually be followed by a call to RasterImageDef.CloseImage().
This function is intended for use by raster editing application developers for image modification operations only. (Use RasterImageDef.ImageCopy() for read-only access to the image data.) The image returned by this function is the image being displayed. Any modifications to that image will appear the next time the image is redrawn. A copy of the image is automatically saved for Undo.
You may call OpenImage, then close the RasterImageDef object without calling CloseImage. This is called a "long term write lock." You can modify the image data at will while you hold the Atil.Image pointer. Any changes made in the image data appear the next time the image entities are redrawn. The write lock should not be held so long as to interfere with other user commands such as Image Reload, Unload and Detach.
回复

使用道具 举报

85

主题

128

帖子

7

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
468
发表于 2009-9-23 20:50:00 | 显示全部楼层

我的英文太差,无法与您相比。谢谢了!
回复

使用道具 举报

gyl

15

主题

127

帖子

7

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
187
发表于 2009-10-10 13:35:00 | 显示全部楼层
其中提到See ATIL documentation for information about the Atil.Image class。
ATIL documentation 在哪儿呀,帮助里找不到啊。
我用的CAD2008中并没有实现RasterImageDef类的OpenImage函数,2010中才有。
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-14 13:19 , Processed in 0.410102 second(s), 64 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表