How to use do Sobel, dilation at image processing

1 次查看(过去 30 天)
I've conducted with the refrigerant of the evaporator visualization experiment, and proceeding image analysis after filming it.
the refrigerant pipe is round with 8mm diameter, want to know how much of liquid refrigerant flows.
Firstly, tried with binarize and threshold but couldnt get any satisfying result.
This result was not helpful, the original image would be rather intuitive than this.
And then asked for help and got some reply about using Sobel and canny filter.
He gave me real kind answer and reply. Also the sobel method he told me was pretty buch better than i did
This guy said this result was obtained by using Sobel -> Dilation(X2) -> Color Levels (in Gimp)
But didnt attach any codes or more explanations, Having problem with following his way,
Want to know how he did it, what the gimp is and get some code with this Sobel, Dilation, Color levels.
Will be really appreciate it for you guy's help.

采纳的回答

darova
darova 2020-6-14
Try imgradient
I0 = imread('image.png');
I1 = rgb2gray(I0);
[gmag,gdir] = imgradient(I1);
I2 = uint8(gmag);
imshow(I2)

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by