Jump to content

Simple blob finder without Vision package


Recommended Posts

In case this is useful to anyone else who is also too cheap to spring for Machine Vision...

 

I implemented a simple blob finding algorithm based on Blob Detection - The Lab Book Pages.  It takes a 2D array of DBL, which should be easy to create from any monochrome image.  You can set a range of values to count as "foreground"; the default is 1 to +Inf.  I use an intensity graph to display the input, which results in an apparent rotation of your image.  Mentally rotate the intensity graph 90 degrees to the right, to see your original image, e.g. if you created the data by reading a picture file and selecting one color.  The output "blobs" will be oriented like your original image.  Values of 0 in the output indicate no blob, i.e. nothing there.  Values 1 or greater are the blob numbers, in the order encountered.

post-4616-0-34432400-1437155642.png

 

Labview 2012; OpenG array package required.

 

Use blob_find_DBL.vi by itself (it's in Common\Calculations) or with test_blob_find.vi (in Common\tests, and you will need a PNG file to read).

Common.zip

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.