Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,360 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,244 people online right now. Registration is fast and FREE... Join Now!




matlab

 
Reply to this topicStart new topic

matlab

karthikasankar
post 27 Aug, 2008 - 02:25 AM
Post #1


New D.I.C Head

*
Joined: 18 Jul, 2008
Posts: 18

Hi friends


I have to know the basics or algorithm for detecting vehicles from static images using color and edges.but i have started using color transform model.please guide to continue for the project
Thanks in Advance
User is offlineProfile CardPM

Go to the top of the page

dineeshd
post 27 Aug, 2008 - 03:47 AM
Post #2


D.I.C Addict

Group Icon
Joined: 30 Jun, 2008
Posts: 557



Thanked 16 times

Dream Kudos: 575
My Contributions


Please post your code so far and give detailed explanations about the scenario.
User is offlineProfile CardPM

Go to the top of the page

karthikasankar
post 27 Aug, 2008 - 11:11 PM
Post #3


New D.I.C Head

*
Joined: 18 Jul, 2008
Posts: 18

Dear sir


I have attached my block diagram. The code wat i wrote pasted below.


CODE
     image=imread(filename of image);
              figure;
              imshow(image);
  %  convert image from RGB color space to L*A*B color space
              cform=makeform('srgb2gray');
              Lab_image=applyform(image,cform);



after this i dont know how to proceed so please guide me to continue .


Thanks in advance







Attached File(s)
Attached File  untitled.bmp ( 1.77mb ) Number of downloads: 12
User is offlineProfile CardPM

Go to the top of the page

numerical_jerome
post 13 Sep, 2008 - 07:39 PM
Post #4


New D.I.C Head

*
Joined: 16 Sep, 2007
Posts: 16


My Contributions


It appears you have only brought in your image into a MATLAB array, and converted from RGB. Next step, if you are looking for discreet items, would be edge finding.

Wikipedia might be a good place to look there

http://en.wikipedia.org/wiki/Edge_detection

once you've read a few different methods (all of which work surprising poorly, edge detection is a very non-trivial task) and have created some code attempting edge detection, you may have a better feel for how to proceed with you particular problem.

-Jerome

P.S. Having done similar tasks in the past, I find using MATLAB's 3d mesh plot is a very good way of visualizing the brightness of individual pixels / groups of pixels, and refining how thresholds are set, et cetera, ymmv
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 04:39AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month