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

Join 136,406 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,474 people online right now. Registration is fast and FREE... Join Now!




matlab

 
Reply to this topicStart new topic

matlab

karthikasankar
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
+Quote Post

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

D.I.C Addict
Group Icon

Joined: 30 Jun, 2008
Posts: 578



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
+Quote Post

karthikasankar
RE: Matlab
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
+Quote Post

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

New D.I.C Head
*

Joined: 16 Sep, 2007
Posts: 20



Thanked: 1 times
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
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:04PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month