Convolution and filtering to refine an image to get the horizontal and vertical edges
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
img = double(lena);
% ---- Filters ---------------------- % filter to detect horizontal edges
gx = [1;0;-1]./sqrt(2);
% filter to detect vertical edges
gy = [1 0 -1]./sqrt(2); % smoothing filter F = [1 4 6 4 1; 4 16 24 16 4; 6 24 36 24 6; 4 16 24 16 4; 1 4 6 4 1];
F = F./norm(F);
final_img = ?
What are the steps to get to final_img?
0 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!