Graphics question about robot vision in vb.net?

  • Thread starter Thread starter Brad Rogers
  • Start date Start date
B

Brad Rogers

Hi all

Is it possible or simple to take a bitmap image and have some
function/method be able to outline items?

kind of like robot vision? or 3D image processing?

I will supply a bitmap and expect the program to evaluate spots, measure
distance between them. Is this built into the GDI graphics?

tia
 
This is very specialized and not at-all catered for. You'll have to do
recognition yourself.

To get you going you may wish to review some of the techniques in my article
on extracting a region from a bitmap. This might give you some ideas.


--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Awesome, thanks Bob I will try these examples


Bob Powell said:
This is very specialized and not at-all catered for. You'll have to do
recognition yourself.

To get you going you may wish to review some of the techniques in my article
on extracting a region from a bitmap. This might give you some ideas.


--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Okay Im trying the examples, but they are in C# ? So Im trying to convert
across. Is there some convert tool?

Im stumped on some logic issues here.

if(_img.GetPixel(x,y)==_matchColor)
{

inimage=false;

rc.Width=x-rc.X;

rgn.Union(rc);

}



This apparently stops the show. I had to remember scope for variables in vb
is wider, so I renamed the x/y vars to unique things; but the IF will not
compare.



Dim pixelcolor As New Color

pixelcolor = _img.GetPixel(x, y) <==== error

If pixelcolor = _matchColor Then

inimage = False

It says operator '=' is not defined for types system.drawing.color and
system.drawing.color

I tried to get the variable then do the compare? same thing. I try IS? that
wont work. What does this thing want?
 
Back
Top