gen_disc_seπ
Short descriptionπ
gen_disc_se β Generate ellipsoidal structuring elements for gray morphology.
Signatureπ
gen_disc_se( out image SE, string Type, integer Width, integer Height, number Smax )
Descriptionπ
gen_disc_se generates an ellipsoidal structuring element
(SE) for gray morphology of images. The parameter
Type determines the image type. It must match the image
type of the image to be processed in subsequent operator calls using
this structuring element. The parameters Width and
Height determine the length of the two major axes of the
ellipse. The value of Smax determines the maximum gray
value of the structuring element. For the generation of arbitrary
structuring elements, see read_gray_se. The structuring
element can be saved as image with the help of the operator
write_image. However, take care to use an image format that
supports alpha channels to save the shape of the structuring element
such as βtiffβ, βjp2β or βpngβ. These files can then be loaded
again with the operator read_image.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
SE (output_object) image β object (byte / uint2 / real)
Generated structuring element.
Type (input_control) string β (string)
Pixel type.
Default: 'byte'
List of values: 'byte', 'real', 'uint2'
Width (input_control) integer β (integer)
Width of the structuring element.
Default: 5
Suggested values: 0, 1, 2, 3, 4, 5, 10, 15, 20
Value range: 0 β€ Width β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Height (input_control) integer β (integer)
Height of the structuring element.
Default: 5
Suggested values: 0, 1, 2, 3, 4, 5, 10, 15, 20
Value range: 0 β€ Height β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Smax (input_control) number β (real / integer)
Maximum gray value of the structuring element.
Default: 0
Suggested values: 0, 1, 2, 5, 10, 20, 30, 40
Resultπ
gen_disc_se returns 2 (H_MSG_TRUE) if all parameters are correct.
If necessary, an exception is raised.
Combinations with other operatorsπ
Combinations
Possible successors
gray_erosion, gray_dilation, gray_opening, gray_closing, gray_tophat, gray_bothat, write_image
Alternatives
See also
Moduleπ
Foundation