image processing - ImageProcessing MatLab -
i have video of welding procedure, , every frame need take contours of welded area, , detect edges. unfortunately, images got aren't best quality, tried put several filters , make image enhacement , didn't work take sharp edges.
image below:
i managed make following code, results terrible.
clc clear vid = videoreader('home/simulation/v6_008.avi'); h=ones(3,3)/9; i=1 : mov.numberofframes thisframe = read(vid,i); g = image(thisframe); lsave = sprintf('image.jpg'); saveas(g, lsave, 'jpg') = imread(lsave); a1 = imcrop(a,[150 450 650 300]); a2= imsharpen(a1,'radius',50,'amount',500); b = rgb2gray(a2); c=imadjust(b,[0.6 0.8],[]); c1= imfilter(c,h); c2=adapthisteq(c1,'cliplimit',0.01,'distribution','exponential'); d = edge(c1,'canny',0.1); e=bwareaopen(d,50); imshow(e) end
these filters , image enhacements helped little bit, still not enought measurements.
so have 2 questions:
1) know other tool can use make edge detection cleaner? want outline specified region can see.
2) need make edge detection every frame, , save frames, , save video after edge detection. don't know how it. you?
thanks guys, apology if confusing. i'm afraid if don't finish gonna troubled.. :(. again, apreciate help!
this edges ideally have after edge detection:
Comments
Post a Comment