Browse by Tags

All Tags » Images » C# (RSS)

Image Processing v2.1

BTW to convert from the byte[] back to an image is simple enough private Bitmap ConvertBitmap(byte[] frame, int width, int height) { Bitmap bmp = new Bitmap( width, height, PixelFormat.Format24bppRgb); BitmapData data = bmp.LockBits( new Rectangle(0,...
Posted by sweisfeld | 2 comment(s)
Filed under: , , ,

Image Processing v2

I was tearing into v1.5 of Microsoft Robotics Studio ( http://www.microsoft.com/robotics ) and came across a novel way to process the pixels in an image. In previous posts I was using unmanaged C# code and pointers to move around the image. This worked...
Posted by sweisfeld | with no comments
Filed under: , , ,

Tampa Code Camp Robot Vision Presentation

Here is the powerpoint for my presentation tomorrow. http://www.onetug.org/DNN/Portals/0/member_files/2007_07_14_robot.ppt
Posted by sweisfeld | with no comments
Filed under: , , , ,

Bounding Box

In my earlier post I put together an image processing class ( http://drowningintechnicaldebt.com/blogs/shawnweisfeld/archive/2006/11/06/Bitmap-Processing-in-C_2300_.aspx ). I needed a method that built a bounding box around a given shape. Here is the...
Posted by sweisfeld | with no comments
Filed under: ,

Center of Mass

In my earlier post I put together an image processing class ( http://drowningintechnicaldebt.com/blogs/shawnweisfeld/archive/2006/11/06/Bitmap-Processing-in-C_2300_.aspx ). I needed a method that found the center of a given mass of pixels. Here is the...
Posted by sweisfeld | with no comments
Filed under: ,

Remove Background

In my earlier post I put together an image processing class ( http://drowningintechnicaldebt.com/blogs/shawnweisfeld/archive/2006/11/06/Bitmap-Processing-in-C_2300_.aspx ). I needed a method that did some segmentation based on a given color. It needed...
Posted by sweisfeld | with no comments
Filed under: ,

Stack Based Flood Fill Algorithm

For a recent project I needed a Flood Fill Algorithm (see Flood Fill in Wikipedia, http://en.wikipedia.org/wiki/Flood_fill ). Here is my implementation in C++. Some things to note 1) I am using the ImagerBitmapClass from a previous post ( http://drowningintechnicaldebt...
Posted by sweisfeld | with no comments
Filed under: , , ,

Bitmap Processing in C#

Need to crack a bitmap and dittle around with its pixels? I know there is a managed get pixel property on the bitmap object but that is SLOW if you have to work with a lot of pixels. After some digging around I have compiled a few examples together to...
Posted by sweisfeld | 5 comment(s)
Filed under: ,