Autonomous seam detection on matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I'm trying to detect the seam on the following image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159103/image.png)
I wanna find pixels position of the detected line(red line in desire image) on the original image.
use the following code and finally removed noise from image reach this result
clc,clear,clf;
im = imread('Im.png.png');
imshow(im);title('Original image'); pause(0.5);
sim = edge(im, 'sobel');
imshow(sim);title('after Sobel'); pause(0.5);
mask = im > 5;
se = strel('square', 5);
mask_s = imerode(mask, se);
mask(mask_s) = false;
mask = imdilate(mask, se);
sim(mask) = false;
imshow(sim);title('after mask');pause(0.5);
sim= medfilt2(sim);
imshow(sim);title('after noise removal')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159104/image.gif)
unfortunately there is nothing remain to find the seam perfectly.
any help would be appreciated.
Downlaod original image.
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!