How can I modify this code so that canny edge detector can detect this red mark line ?

6 vues (au cours des 30 derniers jours)
sufian ahmed
sufian ahmed le 27 Juil 2017
Modifié(e) : sufian ahmed le 29 Juil 2017
I take image using Microsoft kinect. But all time canny edge detector missed that line. I dont know why ?how can i detect this line? I attached here raw depth image & output of canny. Don't hesitate about black depth image. it works. When u run my code u will see that in red arrow area of raw depth image has an edge but after canny operation it vanished.
A_depth_distance=imread(raw_depth_image);
figure,imshow(A_depth_distance,[0 4500]);
%Filtering the raw depth image Median
filtered_depth_distance=medfilt2(A_depth_distance,[3 3]);
figure,imshow(filtered_depth_distance,[0 4500]);
title('Filtering the raw depth image Median');
%Edge Detection Using Canny Operator
edges_depth_distance=edge(filtered_depth_distance,'canny',[0 .02],4);
figure, imshow(edges_depth_distance);
title('Image obtained using Canny Operator');
Raw Depth Image:
Canny output:

Réponses (0)

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by