komathi86
komathi86
Branch Unspecified
17 Sep 2011

Edge Detection in Matlab

Hi, I'm doing a project on transforming photographs into cartoons using matlab. I'm stuck at the edge detection stage. Is there any way I can combine the 5 different types of edge detection methods -Sobel, Prewitt, Roberts, Gaussian and Canny to obtain an efficient edge detection??? Please help. Thank you very much
silverscorpion

silverscorpion

Branch Unspecified
10 years ago
Edge detection is nothing but a filtering process. There are so many types of filters like sobel or canny filters available. You can also use your own algo to create your own customized filters to do the edge detection. But I dont think you can combine all the filters into one 'efficient' filter. The type of filter to be used depends on the application and the efficiency too depends on various factors like type of filter and the value of threshold, etc. So instead of trying to combine many filters, you can try using all the filters one by one and determine which one works best for the application you have at hand..
komathi86

komathi86

Branch Unspecified
10 years ago
Thank you very much for your reply. It is very helpful. I have tried the different filters separately n feel that Canny works best. However, I will try to come up with an customized one and see how it works too. Thank you very much 😀
rahulrajpl

rahulrajpl

Aeronautical
10 years ago
Hi,
I am also starting a project whose first phase is the edge detection. And I am learning edge detection using matlab
Just entered into this forum. Hope it will be useful.
komathi86

komathi86

Branch Unspecified
10 years ago
Hi rahul,

Thx for the reply. I have combined the various edge detection methods available in Matlab. However, there are too many unnecessary details (cheek lines,forehead lines etc) in the sketch obtained. Do you have any idea how to only extract the essential lines(eyes, nose, lips and face outline)? Thank you
Ashraf HZ

Ashraf HZ

Communications
10 years ago
Maybe you can try some threshold techniques, komathi. That'll remove minor details somewhat.
silverscorpion

silverscorpion

Branch Unspecified
10 years ago
convolute your image with this matrix:

[ 0 0 0 0 0
0 1 1 1 0
0 1 1 1 0
0 1 1 1 0
0 0 0 0 0]

This will reduce the total number of connected components in the image. Then do edge detection with sobel or some other filter. I guess this will reduce the unwanted lines. U might still want to use some other thresholding techniques as well..
rahulrajpl

rahulrajpl

Aeronautical
10 years ago
I have done with the edge detection using available filters and I find canny useful. next step i need is to find the no. of objects in the image. ? I mean object as component in the image bounded by 1 only shall be considered as one object and I need to perform some actions on these objects separately. Is there any functions for that?
jiya ali

jiya ali

Branch Unspecified
10 years ago
<removed>
my project is biometric(fingerprint) based file encryption... my Question i have done edge detection by using MATLAB edge function but now i want to plot detected edges in graph ... but dont know how it will be done.... plz help me
Predictor

Predictor

Branch Unspecified
10 years ago
komathi86
Hi, I'm doing a project on transforming photographs into cartoons using matlab. I'm stuck at the edge detection stage. Is there any way I can combine the 5 different types of edge detection methods -Sobel, Prewitt, Roberts, Gaussian and Canny to obtain an efficient edge detection???
There are a number of ways to fuse edge detectors (such as taking an average, maximum, etc.), but unless you have some well-defined measure of the quality of the combined edge detector, I don't know how much better you can expect performance to get.

For what it's worth, I've had some success using Phillips' differential edge detector, which can be implemented to execute fairly quickly in MATLAB (see: "Image Processing, Part 6: Advanced Edge Detection", by Dwayne Phillips, "C/C++ Users Journal", Jan-1992).


-Will Dwinnell
Data Mining in MATLAB
digitalpbk

digitalpbk

Branch Unspecified
9 years ago
Text on Digital Image Processing By Gonzalez would give some information on this topic.
Edge Thinning algorithms and image thinning...

https://edge.kitiyo.com
gaurav5242

gaurav5242

Branch Unspecified
9 years ago
hii everyone.....

i am new to this forum...

i am working on a project in which i have to detect cracks on the pcb through edge detection.....
how should i start...???

thanks......

😕
Predictor

Predictor

Branch Unspecified
9 years ago
gaurav5242
i am working on a project in which i have to detect cracks on the pcb through edge detection.....
how should i start...???
You will need a basic plan (what tools will be used, how performance will be measured, etc.) and you will need to obtain example images to train on. These images will need to be labeled somehow as "crack" / "not cracked" or graded some how (25% cracked, etc.).
thechamp

thechamp

Branch Unspecified
9 years ago
i have a matlab query too

i have a hardware ( say microcontroller) whose one port is connected to pc and other to a device (say robot or micromouse). the program to run the device is uploaded in my hardware. when i execute this, hardware sends signal to device. but i want to read those signals using MATLAB that are being sent to device. DAQ toolbox can help me, yet i dont know how. or any other way to accomplish it?
itika_ece

itika_ece

Branch Unspecified
7 years ago
Hi,
I am also starting the project on edge detection in Matlab.Firstly i want to find the edges i.e.(connectivity of white pixels) in matrix. so kindly help me out .
thanks
Gigi

Gigi

Branch Unspecified
7 years ago
Hi, I am doing my mini project now on 'Edge Detection of Fundus Images',using Canny Edge Detector (instead of using inbuilt function, 'for -loop' should be used). can u please help me for the sorce code for this as 'm-file'.
Thank u.

simplycoder

simplycoder

Branch Unspecified
7 years ago
@itika_ece :
@Gigi :

Please read the 2nd sticky from the top.
Please show your work, then only members would help you.
As of now, I don't see a reason why the members including me would like to help you, as you haven't even posted your work.

Share this content on your social channels -

Only logged in users can reply.