Bashar Kokash' Blog

.Net Framework, windows and web development.

This site

Resources

Friends

Sponsors

  • MaximumASP
  • Packet Sniffer
    Home Loan
  • freeconferencing

Improving performance while dealing with Bitmaps using Unsafe code

Since I'm working on my graduation project ( Iris recognition system ) using C#, I got involved in building the basic methods of image processing such as: image enhancement, convert to gray, convolutions, edge detectors etc... , so I have to reach every single pixel of the Bitmap image, but when dealing with .NET Framework embedded methods; getPixel(), setPixel(), it takes about 4 seconds only to convert an image to gray (this is unacceptable because many steps of convolutions, filters should be applied before I can get the needed information) so after a while I found a new way: fast and efficient, it's the unsafe code which deals directly with the memory but at the same time it is under the control of the CLR ,for more information visit:

Unsafe code programing in C# (Code Project)

Painless yet unsafe grayscale conversion in C# (Code Project)

 

I'll post more implementations for image processing in C# soon.

Posted: Nov 19 2007, 02:54 AM by BasharKokash | with 2 comment(s)
Filed under:

Comments

Shishir Pandey said:

Hi

I am also working in image processing with C#. Just wanted to suggest you a few more really use full links. I might be helpful for your project.

1.The following link gives a good introduction on image processing in C#.

www.codersource.net/csharp_image_Processing.aspx

2. The following links are very good libraries by Andrew Kirillov

www.codeproject.com/.../Image_Processing_Lab.asp

www.codeproject.com/.../aforge.asp

# November 20, 2007 12:07 AM

BasharKokash said:

I already passed this level, thanks anyway.

Also I can't use a DLL library like AFroge in a graduation project, I have to implement my own methods.

# November 20, 2007 5:36 PM
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.