Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blurry edge detection

I have little background knowledge of image processing and recognition. I am trying to detect principal edges/grayscale transitions on a grayscale image such as a portrait. The problem is that on some parts, the edge is blurred (because of focus). I am using Canny edge detector with multiple thresholds, but I can never detect those edges (chin, clothes, ears, side of the face, ...)

Original image: Original This is the result I am getting: beard, sharp edges Current result This is what features I'm interested in: transitions between the main gray areas Wanted results

Is edge detection the right tool for this? Thanks!


UPDATE: Using Deriche filtering and halving the size of the image before edge detection (with apertureSize=7), I got it working pretty close to what I want. Good results

like image 687
Montspy Avatar asked May 01 '16 17:05

Montspy


1 Answers

Using canny-deriche filter you can find : a possibility

Full code is here

like image 116
LBerger Avatar answered Sep 29 '22 22:09

LBerger