What modification should i do for these broken edges (red arrow) ?
1 次查看(过去 30 天)
显示 更早的评论
I don't know why this marked edges are broken. but u see that all other edges are good. After median filtering i applied canny.Now my question is why these are bad ?. I applied another filter but in that these broken edges are good but other edges are broken.So what modification i do so that all horizontal edges will be fine ?
clear; close all;
global first_comp
%Input Image Raw Depth 512x424
A_depth_distance=imread('C:\Users\sufi\Desktop\matlab_kinect\Data_image\512x424\Best-Dataset\depth\arfin_depth.png');
% A_depth_distance=31.25*uint16(A_depth_distance);
figure,imshow(A_depth_distance,[0 4500]);
title('Input Image Raw Depth 512x424');
%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');
fill=imfill(filtered_depth_distance,'holes');
%Edge Detection Using Canny Operator
edges_depth_distance=edge(fill,'canny',[0 .009],4);
figure, imshow(edges_depth_distance);
title('Image obtained using Canny Operator');
Broken edges ( red arrow)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166424/image.png)
Raw Image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166425/image.png)
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!