[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

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);
image
(a)

Fractures enhancement

The fracture lines are enhanced by the close top-hat operator.

b = mmcloseth(a,mmsebox(2));
mmshow(b);
image
(b)

Gray-scale area open

Small connected bright regions are removed by the gray-scale area open operator. Note the connectivity used (mmsebox: 8-connected).

c= mmareaopen(b,80,mmsebox);
mmshow(c);
image
(c)

Thresholding

The fracture lines are detected. This threshold is very robust.

d = mmthreshad(c,15);
Warning: Converting image from scalar to uint8.
mmshow(d);
image
(d)

Final display

Overlay of the fracture lines over the original image.

mmshow(a,d);
image
(a,d)

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems