fuzzy_perimeterπ
Short descriptionπ
fuzzy_perimeter β Calculate the fuzzy perimeter of a region.
Signatureπ
fuzzy_perimeter( region Regions, image Image, integer Apar, integer Cpar, out real Perimeter )
Descriptionπ
The operator fuzzy_perimeter is used to determine the
differences of fuzzy membership between an image point and its
neighbor points. The right and lower neighbor are taken into
account. The fuzzy perimeter is then defined as follows:
where MxN is the size of the image, and \(u(x(m,n))\) is the fuzzy membership function (i.e., the input image). This implementation uses Zadehβs Standard-S function, which is defined as follows:
The parameters \(a\), \(b\) and \(c\) obey the following restrictions: \(b = \frac{a+c}{2}\) is the inflection point of the
function, \(\Delta b = b - a = c - b\) is the
bandwidth, and for x = b \(\mu(x) = 0.5\)
holds. In fuzzy_perimeter, the parameters
Apar and Cpar are defined as follows: \(b\) is
\(\frac{\textrm{Apar}+\textrm{Cpar}}{2}\).
Attentionπ
Note that for fuzzy_perimeter, the Regions must lie
completely within the previously defined domain. Otherwise an exception
is raised.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
Parametersπ
Regions (input_object) region(-array) β object
Regions for which the fuzzy perimeter is to be calculated.
Image (input_object) singlechannelimage β object (byte)
Input image containing the fuzzy membership values.
Apar (input_control) integer β (integer)
Start of the fuzzy function.
Default: 0
Suggested values: 0, 5, 10, 20, 50, 100
Value range: 0 β€ Apar β€ 255 (lin)
Minimum increment: 1
Recommended increment: 5
Cpar (input_control) integer β (integer)
End of the fuzzy function.
Default: 255
Suggested values: 50, 100, 150, 200, 220, 255
Value range: 0 β€ Cpar β€ 255 (lin)
Minimum increment: 1
Recommended increment: 5
Restriction: Apar <= Cpar
Perimeter (output_control) real(-array) β (real)
Fuzzy perimeter of a region.
Exampleπ
(HDevelop)
* To find a Fuzzy Entropy from an Image
read_image(Image,'monkey')
fuzzy_perimeter(Trans,Trans,0,255,Per)
/* To find a Fuzzy Entropy from an Image */
read_image(&Image,"monkey")\;
fuzzy_perimeter(Trans,Trans,Apar,Bpar,&Per)\;
Resultπ
The operator fuzzy_perimeter returns the value 2 (H_MSG_TRUE) if
the parameters are correct. Otherwise an exception is raised.
Combinations with other operatorsπ
Referencesπ
M.K. Kundu, S.K. Pal: ``Automatic selection of object enhancement operator with quantitative justification based on fuzzy set theoretic measuresββ; Pattern Recognition Letters 11; 1990; pp. 811-829.
Moduleπ
Foundation