winzip icon

Find objects and label them in a thresholded image

Submitted on: 1/1/2015 3:11:00 PM
By: Anas S. A. (from psc cd)  
Level: Advanced
User Rating: By 2 Users
Compatibility: C#
Views: 2496
     This code finds objects in a thresholded image, labels them and reports their total number by using 4-connectedness labeling. The background is labeled as zero "0" and objects are labeled accordingly. The process is done by scanning the image top to bottom, left to right. The result is saved to a text file as digits representing the objects as labels; each digit in the text file represents a pixel of the image. To run the program first load an image by first choosing one from the combo box and then clicking the Load_Picture button, then to process the image click the Find_Objects button. This code was written by me and my friend Onur Seran, the reason we are posting it here, is that we needed this code for our project but could not find any similar code on internet, so we decided that if we write it our selves we are going to post it here, so that any one working on image processing can use it. We really hope it would be of any use to you.

winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net

Other 6 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.