I need code use in matlab to detect edge of image ,using wavelet lifting scheme. about fabric defect detect.
2 ビュー (過去 30 日間)
古いコメントを表示
I am try to use wavelet lifting schemes on fabric defect detect, by acquiring the fabric image and process it.
0 件のコメント
回答 (1 件)
matar maoz
2011 年 2 月 27 日
I am not familiar with the technique, but I am now working on an edge detection code with my project. here is a brief code, using different variations of the edge() function.
If you find another solution, please post it, so WE would be able to enjoy it too
%% % LOAD A GRAYSCALE IMAGE USING IMREAD() BEFORE RUNNING THE CODE %If you have an RGB image, load it to variable 'RGB' and use GRAY = rgb2gray(RGB); %figure, %imshow(GRAY), %title('Gray Image');
figure Xlog = edge(GRAY,'log'); %specifies the Prewitt method. imshow(Xlog) title('log edge');
GRAY2=histeq(GRAY); %figure %imshow(GRAY2) %title('enhanced histogram equalization')
%figure %Xlog = edge(GRAY2,'log'); %specifies the Prewitt method. %imshow(Xlog) %title('log enhanced');
%% edge with other METHODS
figure [X,thresh]=edge(GRAY); imshow(X) title('regular edge');
figure [Xsobel,threshsobel]=edge(GRAY,'sobel',1); imshow(X) title('sobel edge ');
figure Xprewitt = edge(GRAY,'prewitt'); %specifies the Prewitt method. imshow(Xprewitt) title('prewitt edge')
matar maoz
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!