3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Image Processing and Counting using MATLAB

Image Processing and Counting using MATLAB

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 1Read the Image

Read the Image

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)
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Dec 30, 2011. 1:38 PMJungleMugsy says:
My girlfriend had to do something like this for a class using Matlab. Too bad she didn't read this first!
Oct 4, 2010. 10:43 AMarzoo105 says:
thx bro
Jul 5, 2010. 10:48 AMnaziabhi says:
nice work
Jun 12, 2010. 4:02 AMirtiq7 says:
Aditya bhai this is slick......... I am loving it great work
Jun 11, 2010. 1:36 PMfuego316 says:
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.
Jun 11, 2010. 5:29 PMtanmanknex says:
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.
Jun 11, 2010. 12:48 PMbishopdante says:
Matlab rules. Nice one.
Jun 11, 2010. 11:33 AMCulturespy says:
More people need to know this stuff!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
1
Author:adityareddy(www.ingeniumblog.net)
Oh, hi there! My name is Aditya Reddy. I am an Electronics Engineer, Software developer and a tech-blogger. You can see more of my works at my website www.ingeniumblog.net. I have a passion for devel...
more »