明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2128|回复: 5

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

[复制链接]
发表于 2009-9-2 18:37 | 显示全部楼层 |阅读模式
一个10cm*10cm的图形,在用照相机拍摄后的图像上四条边框成了任意四边形,内部1cm*1cm的小方格也随着变形了。
如何将图像纠正成原来的10cm*10cm的图形,内部也成1cm*1cm的方格。
发表于 2009-9-2 19:33 | 显示全部楼层
图像纠正还真没做过:)
不过你最好贴图详细说明下
发表于 2009-9-23 13:38 | 显示全部楼层
如何在程序中得到CAD中插入的光栅图像啊?只有获得图像数据,才能通过图像处理算法来纠正图像。
发表于 2009-9-23 15:58 | 显示全部楼层

可以看下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.

 楼主| 发表于 2009-9-23 20:50 | 显示全部楼层
lzh741206发表于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.) Eac

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

发表于 2009-10-10 13:35 | 显示全部楼层

其中提到See ATIL documentation for information about the Atil.Image class。

ATIL documentation 在哪儿呀,帮助里找不到啊。

我用的CAD2008中并没有实现RasterImageDef类的OpenImage函数,2010中才有。

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-18 14:57 , Processed in 0.204173 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表