mmdsoil - Detect fractures in soil.
-
Description
- The input-image is a gray-scale image of soil that has some thin fractures. These fractures are detected by the application of the top-hat and area open operators.
Reading
The image of fractures in soil is read.
a = imread('soil.tif');
mmshow(a);
|
| (a) |
|
|
Fractures enhancement
The fracture lines are enhanced by the close top-hat operator.
Gray-scale area open
Small connected bright regions are removed by the gray-scale area open operator. Note the connectivity used (mmsebox: 8-connected).
Thresholding
The fracture lines are detected. This threshold is very robust.
d = mmthreshad(c,15);
Warning: Converting image from scalar to uint8.
mmshow(d);
|
| (d) |
|
|
Final display
Overlay of the fracture lines over the original image.