Image Processing and Counting using MATLAB by adityareddy
Featured
process1_01.jpg
process1_02.jpg
process1_03.jpg
process1_04.jpg
process1_05.jpg
process1_06.jpg

This is fun project based on image processing with MATLAB, here we will come accross learing how to count the number of distinguishable objects in an image. Sounds fun ,dosen’t it …So lets get started!

The following tutorial is performed with the help of MATLAB. MATLAB stands for “MATrix LABoratory” and is a numerical computing environment and fourth-generation programming language, developed by MathWorks. Using MATLAB, we can solve technical computing problems faster than with traditional programming languages, such as C, C++, and Fortran.

The tutorial can be performed by executing the commands in each step sequentially in the command window of MATLAB.
 
Remove these adsRemove these ads by Signing Up

Step 1: Read the Image

process1_01.jpg

An image is choosen so that it has considerable contrast with its background so that the objects can be identified. The function imread reads the image from a given location and stores it in the matrix img1. The imshow function displays the image.


img1=imread('Lines.jpg');
imshow(img1)
dkz says: Nov 23, 2012. 12:13 AM
NIce work done. Like this can u tell how to detect objects in an image and find their locations. It will be very useful.
kmittal2 says: Nov 4, 2012. 2:15 AM
It is possible that the objects appear overlapped in image. Is it still possible to count their numbers?
JungleMugsy says: Dec 30, 2011. 1:38 PM
My girlfriend had to do something like this for a class using Matlab. Too bad she didn't read this first!
arzoo105 says: Oct 4, 2010. 10:43 AM
thx bro
naziabhi says: Jul 5, 2010. 10:48 AM
nice work
irtiq7 says: Jun 12, 2010. 4:02 AM
Aditya bhai this is slick......... I am loving it great work
adityareddy (author) says: Jun 14, 2010. 8:59 AM
thanx!!
fuego316 says: Jun 11, 2010. 1:36 PM
Great work, I think everyone should learn the basics like this! You could also use the watershed filter to pick our objects not so clearly defined. It could be useful to show something like that as an next step for people who want to try it with any blob structures that may touch.
adityareddy (author) says: Jun 12, 2010. 1:08 AM
maybe im planning 2 fill those up in my next instructable. Thanx anyway!!
tanmanknex says: Jun 11, 2010. 5:29 PM
When I first looked at that first image, I thought it looked familiar but I couldn't place it. When I closed out of the browser twenty minutes later, i realized that my desktop has that as the background. That's basically my life for you.
adityareddy (author) says: Jun 12, 2010. 1:06 AM
Ya, i could'nt think of anything when i have that on my desktop.
bishopdante says: Jun 11, 2010. 12:48 PM
Matlab rules. Nice one.
Culturespy says: Jun 11, 2010. 11:33 AM
More people need to know this stuff!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!