3.5

3.5 | 63 ratings Rate this file 9225 downloads (last 30 days) File Size: 19.49 KB File ID: #8031

Image segmentation & Extraction

by Jeny Rajan

 

14 Jul 2005 (Updated 16 Nov 2006)

This program segments and extracts objects from an image.

Download Now | Watch this File

File Information
Description

A simple program for object extraction from images.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.1 (R12.1)
Zip File Content  
Other Files seg.m,
car3.jpg
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (89)
15 Jul 2005 Sergei Koptenko 1) In Matlab R14(SP2) it gives:  
 
??? Error using ==> conv2  
First and second arguments must be single or double.  
 
Error in ==> seg at 17  
B=conv2(BW,msk); %Smoothing image to reduce the number of connected components  
 
2) What is the application of this program beyond the test image "car3.jpg" ?  
19 Jul 2005 Ajimon S Really good
05 Aug 2005 Jagannath Reddy  
13 Sep 2005 Wang Bin Well done.  
The contour detection is good.But I am confused what does the last figure intend to show?
15 Oct 2005 mufid mufid i used part of the porgram for detect license plate of the car but.. there many other object is there any one can help me to fill the other edge or object without effect the license plate?
07 Jan 2006 lissa anastasia tq for the code.i try to run this code into matlab..but why the command 'imread' is going error?below is the error..  
 
Enter the file nameseg.m  
??? Attempt to execute SCRIPT imread as a function.  
 
Error in ==> Untitled8 at 7  
im=imread(k);  
13 Jan 2006 Xin Huang too simple and meaningless. more complex examples need to be added. and objects extraction can be subdivided to supervised method and Un-su one, this code is an Un-su algorithm, can it extract all the objects of interests in an Un-supervied approach?
02 Feb 2006 venkatesh sundararaj  
01 Mar 2006 boonrit pongsatitpat im=imread('car3.jpg');
07 Mar 2006 Alex Denone  
15 Mar 2006 Tony Gladvin George As Mr.Sergei KOptenko indicated, line no:17 "B=conv2(BW,msk)" will throw an error. Please use "B=conv2(double(BW),msk)", instead.
04 Apr 2006 cool coolleen i m doing my final year project of mini portions segmentation method in face recognition using matlab. may i know how to put my cropped small portions of the face into matrix (eg: 6x9 matrix, where 6 refer to number of photos, n 9 refer to the number of small portions). by the way, i also would like to know how can i compare the matrix column by column in order to get the eigenvalues. n i m new to matlab, so i hope u will help me to clear my doubts. if u have to source code, pls send a copy to me. thanks and really appreciate for your help. Hope can hear from u soon.
10 Apr 2006 nejat rahman  
21 Apr 2006 Mahdi Yazdian  
03 May 2006 Mohamed Sami nice work
08 May 2006 Benamira Elias Thanks Jeny! Simple and useful
25 May 2006 Simon Lin BW arguments must be single or double, if so, please update code.
06 Jun 2006 mohamed hassan thank you
10 Oct 2006 mohan reddy  
19 Oct 2006 Karthik Raja Simply Padam... ok Good
01 Nov 2006 gaurav santhalia plz tell me what input should i give.here when it is asked to give input i give as car3...but there is an error...plz suggest me...
15 Nov 2006 a moh i tried to run it but i get this error  
??? Error using ==> conv2  
First and second arguments must be single or double.  
 
Error in ==> seg at 20  
B=conv2(BW,msk); %Smoothing image to reduce the number of connected components  
 
>>
16 Nov 2006 kruthika rathinavel im getting an error == > conv2
24 Nov 2006 Lihardo Ranja thanks
06 Jan 2007 subasri muthalraj  
08 Jan 2007 s b Good work!
25 Jan 2007 Chunyi Chen thanks
26 Jan 2007 Maria Garcia This is goooooood!
28 Jan 2007 avinash pokhriyal excellent!
31 Jan 2007 Gaurav Tripathi This is a gud one.
14 Feb 2007 brijesh tripathi  
21 Feb 2007 Özkan SARI only reads your image. I tested with some other car images and your program fails.
26 Feb 2007 fucking crack You cannot start the m-file with clear all. It doesn´t work.
28 Feb 2007 RAVI RAVI HI
12 Mar 2007 sneha latha  
13 Mar 2007 Anonymous Voter  
01 Apr 2007 Maoyuan Chen Good work!
03 Apr 2007 mohan p no
18 Apr 2007 yati mr  
05 Jun 2007 Deepak Malani Malani  
05 Jun 2007 gelare ta  
19 Jun 2007 suresh siri good  
25 Jun 2007 loges waran good work
02 Jul 2007 Taner Ince  
21 Jul 2007 wenjun wu  
27 Aug 2007 Zahra Chaghazardi Dear Chris Shoemaker  
I am working on the watermarking project in spread spectrum domain. I want to simulate it by matlab. can you help me about this?  
thanks.
31 Aug 2007 Soumen Barik  I think it will help us in our project..
22 Sep 2007 selma salem When i use quadtree program to segmente my grayscale image, i get in the result a binary image segmented!, can you help me to obtain a grayscale one.
27 Sep 2007 amy lia  
27 Sep 2007 Aya kh thanks
02 Oct 2007 liao zhijian thank you
04 Oct 2007 paresh patel  
14 Nov 2007 yousef mowaswasah thanks
01 Dec 2007 ko soe thank
09 Dec 2007 yuanquan wang  
19 Dec 2007 martin ruzek I think you should connect all the commands that are needed, for example I am not able to run it because I dont have command rgb2gray and others
02 Jan 2008 Diego Barragán very good
19 Jan 2008 Xz Xz ravings
23 Jan 2008 manoj kumar good for software implementation
23 Jan 2008 manoj kumar helpful
24 Jan 2008 manoj kannan  
26 Jan 2008 benchalgo SAMY goood software...
04 Feb 2008 rama prad  
12 Feb 2008 fizz aq good
05 Mar 2008 Francois Appert  
13 Mar 2008 Lev Che  
19 Mar 2008 Phyu Moe For teaching and learning
05 May 2008 krishna patteti  
12 May 2008 chuleeporn Kan Thanks .
15 May 2008 sunil samant  
19 May 2008 oodbae adriano it didn't work by me. all commands would be described as unknown
19 May 2008 Shashank Tyagi gr8 it worked for me ...
20 May 2008 Sujeong You Good
31 May 2008 mes liste  
05 Jun 2008 mohammad amin abou harb extremely specific i mean you chose the 17th object in L==17 no intelligence as far as im concerned
16 Jul 2008 RC Choong i got ant error in this  
??? Attempt to execute SCRIPT edge as a function.  
Error in ==> car at 11  
BW = edge(im1,'sobel'); %finding edges  
can u help me find out what is problem, thank you
19 Jul 2008 chenna rao good
24 Jul 2008 jiang maple good
18 Aug 2008 Al F ??? The function, script, or class seg  
cannot be indexed using {} or . indexing.
18 Aug 2008 Al F sorry i'm a complete idiot, it does what it's supposed to. Ignore the last comment!
27 Aug 2008 javid ullah good  
17 Sep 2008 florin raja  
24 Sep 2008 huang etoun ck101.com
27 Sep 2008 majid uwanoich hi, I can not download it?!!!
16 Oct 2008 gourav kumar soni thank you ,, it helhs me.
26 Nov 2008 Saravanan its working fine, great. is there any technique to find automatically ROI. I am working on fingerprint compression.
02 Dec 2008 Chung-yeon Lee thanks for the simple code.  
it's exactly what i wanted!
18 Dec 2008 Rushmi What if I want to extract the plate from image of high resolution.  
Also I want to extract the whole frame from the image.
07 Jan 2009 kumar kumar how to give the value if i want to get all the text objects. if i give 17 i get only one , if i give any other i get only some dot..... 
Please login to add a comment or rating.
Updates
16 Nov 2006 error correction

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com