C#中的快速图像处理 [英] Fast image processing in C#

查看:91
本文介绍了C#中的快速图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关如何实现图像处理算法快速运行的任何想法在C#中使用



使用GetPixel从Bitmap访问每个像素似乎是而且耗时很长。

Any thoughts about how to implement image processing algorithms to run fast
in C#?

Using GetPixel to access every pixel from a Bitmap seems to be rather
time-consuming.

推荐答案

3月14日下午5:27,Michael A. Covington

< l ... @ ai.uga.edu.for.addresswrote:
On Mar 14, 5:27 pm, "Michael A. Covington"
<l...@ai.uga.edu.for.addresswrote:

关于如何实现图像处理算法的任何想法在C#中快速运行




使用GetPixel访问Bitmap中的每个像素似乎相当耗时
耗时。
Any thoughts about how to implement image processing algorithms to run fast
in C#?

Using GetPixel to access every pixel from a Bitmap seems to be rather
time-consuming.



所有我见过的小小都使用不安全代码。

http://www.codeproject.com/csharp/unsafe_prog.asp

(评论)< > http://www.codeproject.com/csharp /quickgrayscale.asp

All of the little I''ve seen uses Unsafe code.

http://www.codeproject.com/csharp/unsafe_prog.asp
(comments)

http://www.codeproject.com/csharp/quickgrayscale.asp


谢谢。在发布我的消息后,我意识到有几个例子在

代码项目。


我要去看看它们。不安全的代码可能是正确的使用方法。
Thanks. After posting my message I realized there were several examples on
The Code Project.

I''m going to look at them. Unsafe code might be the right thing to use.


" Michael A. Covington" < lo ** @ ai.uga.edu.for.addresswrote in message

news:u9 ************** @ TK2MSFTNGP03.phx.gbl .. 。
"Michael A. Covington" <lo**@ai.uga.edu.for.addresswrote in message
news:u9**************@TK2MSFTNGP03.phx.gbl...

谢谢。在发布我的消息后,我意识到代码项目中有几个例子




我要去看看它们。不安全的代码可能是正确的使用方法。
Thanks. After posting my message I realized there were several examples
on The Code Project.

I''m going to look at them. Unsafe code might be the right thing to use.



取决于你在做什么。例如,转换为灰度可以是以相似的速度完成所有管理。

Depends on what you''re doing. Converting to grayscale for example can be
done all in managed with similar speed.


>
>



这篇关于C#中的快速图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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