拉直圆圈? [英] Straightening Out A Circle?

查看:121
本文介绍了拉直圆圈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,


我的扫描图像是圆形的,并且在

中间包含一条痕迹(对于那些熟悉的人来说)卡车是一个行车记录仪

图表!)。


我想压扁把它弄成一条直线。我似乎无法找到

任何可以为我做这件事的控件。


有没有人有任何想法,或者我会有什么想法写一些代码来做它

逐像素?


先谢谢。

克雷格。

Folks,

I have a scanned image which is circular, and contains a trace in the
middle of it (for those of you familar with trucks it is a tachograph
chart!).

I want to "flatten" it out, into a straight line. I can''t seem to find
any controls which might be able to do this for me.

Does anyone have any ideas, or will I have to write some code to do it
pixel by pixel??

Thanks In Advance.
Craig.

推荐答案

Craig Parsons写道:
Craig Parsons wrote:
人们,

我有一个圆形的扫描图像,包含在它的中间有一条痕迹(对于那些熟悉卡车的人来说,它是一张行车记录仪图表!)。

我想压扁。把它弄成一条直线。我似乎无法找到任何可以为我做这个的控件。

有没有人有任何想法,或者我必须写一些代码给
逐个像素地进行操作?

在此先感谢。

Craig。
Folks,

I have a scanned image which is circular, and contains a trace in
the middle of it (for those of you familar with trucks it is a
tachograph chart!).

I want to "flatten" it out, into a straight line. I can''t seem to
find any controls which might be able to do this for me.

Does anyone have any ideas, or will I have to write some code to
do it pixel by pixel??

Thanks In Advance.
Craig.




我不喜欢我认为有标准课程,你必须自己编写。


它会是这样的:

- 找到位置/大小/中心圆圈

- 找到轨迹的起始角度

- 跟踪角度/半径坐标中的轨迹

(可能:单步执行对于给定角度,具有一定分辨率的角度范围

找到跟踪线所在的半径。

- 在新x / y图中绘图,x =记录角度,y =记录的半径


好​​项目。对不起,我不能用如何进一步帮助你。这些步骤。


Hans Kesting



I don''t think there are standard classes for this, you have to write your own.

It would be something like:
- find the position / size / center of the circle
- find the start angle of the trace
- follow the trace in angle/radius coordinates
(possibly: step through the angle-range with some resolution, for a given angle
find the radius where the traceline is)
- plot in new x/y graph, x=recorded angle, y=recorded radius

Nice project. Sorry, I can''t help you further with the "how" of these steps.

Hans Kesting


嗯,你刚才这样做过吗?如果是这样的话,那么手动压扁它是不是更容易?




如果你需要这个是动态的,那么先生。 Kesting'的建议

是真的...这篇文章应该为你提供访问和操作图像像素数据的所有细节

。 />
http://www.codeproject.com/ cs / media / ... cfilters11.asp


Joel Martinez
http://www.onetug.org - Orlando .NET用户组
http://www.codecube.net - 博客

well, are you only doing this once? if so, wouldn''t it just be easier
to flatten it out by hand?

If you need this to be dynamic however, then mr. Kesting''s suggestion
holds true ... here is an article that should give you all the details
on accessing and manipulating the pixel data of an image.

http://www.codeproject.com/cs/media/...cfilters11.asp

Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - blog


嗯,你刚才这样做过吗?如果是这样的话,那么手动压扁它是不是更容易?




如果你需要这个是动态的,那么先生。 Kesting'的建议

是真的...这篇文章应该为你提供访问和操作图像像素数据的所有细节

。 />
http://www.codeproject.com/ cs / media / ... cfilters11.asp


Joel Martinez
http://www.onetug.org - Orlando .NET用户组
http://www.codecube.net - 博客

well, are you only doing this once? if so, wouldn''t it just be easier
to flatten it out by hand?

If you need this to be dynamic however, then mr. Kesting''s suggestion
holds true ... here is an article that should give you all the details
on accessing and manipulating the pixel data of an image.

http://www.codeproject.com/cs/media/...cfilters11.asp

Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - blog


这篇关于拉直圆圈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆