go_away

Author Topic: Image analysis: feature extraction  (Read 4961 times)

0 Members and 1 Guest are viewing this topic.

Offline toastmanTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Image analysis: feature extraction
« on: October 04, 2006, 03:33:05 AM »
Hi.. I'm doing my final year project on robotic vision system and is required to do image analysing program that can extract shapes of any object in an image captured by webcam. Assuming only 1 object exists in the image, can anyone suggest what algorithm should I use in order to have the program do the shape extraction automatically? I will be implementing the program using MATLAB. I've been doing some research and encountered Snake Algorithm. Can it be apply for this case?

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
Re: Image analysis: feature extraction
« Reply #1 on: October 04, 2006, 01:48:20 PM »
hey toastman,
so i have looked into Hough Transforms for identifying straight lines.
if you are looking for an image made from straight lines this would be a good place to start. identify the straight lines then start searching for your geometry within them.

if you are searching for shapes without obvious straight lines you should also look at the techniques some of the face recognition programmes use.

what platform are you using? if you are on a reasonably powerfull computer you should look at this project:
http://opencvlibrary.sourceforge.net/
it has some excellent code for Hough Transforms as well as other image recognition techniques.
they have an algorithm that can be trained to search for a shape in an image by showing it lots of samples.
their face finding sample works very well but i didn't experiment with training it with other shapes.

good luck!

dunk.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: Image analysis: feature extraction
« Reply #2 on: October 04, 2006, 03:33:33 PM »
What shapes are you looking for? I would assume just the basic shapes, circle, square, triangle, right? 3D shapes or just 2D?

Each of those shapes has a different number of lines. Your algorithm can do what is called edge detection, which is a very simple and well known algorithm to implement. Edge detection finds the outside lines of the shape, then you can count the number of lines. A circle has 1 line, a triangle has 3, a square has 4, etc.

For more complicated shapes, your algorithm can then calculate the angle between each line. Obtuse triangle, right triangle, etc.

For a rectangle, see if 2 lines consist of more pixels than the other two lines.

Offline RoboRealm

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: Image analysis: feature extraction
« Reply #3 on: November 07, 2006, 02:12:27 AM »
You would probably find this page interesting based on what you need to do. RoboRealm is free too!

http://www.roborealm.com/help/Shape_Match.php

STeven.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: Image analysis: feature extraction
« Reply #4 on: November 07, 2006, 07:48:22 AM »
steven, do you include source to that?

seems you list more too
http://www.roborealm.com/links/vision_software.php

Offline sdk32285

  • Supreme Robot
  • *****
  • Posts: 411
  • Helpful? 0
Robots for Roboticists Blog - http://robotsforroboticists.com/

 


Get Your Ad Here

data_list