3.1.3. SimpleMorphoMath1D¶
This module implements Morphological 1D Operators.
-
class
SimpleMorphoMath.SimpleMorphoMath1D.BallStructuringElement(radius)[source]¶ Bases:
SimpleMorphoMath.SimpleMorphoMath1D.StructuringElementThis class implements a ball structuring element.
The domain of the structuring element is [-radius, radius].
-
class
SimpleMorphoMath.SimpleMorphoMath1D.Domain(inf, sup)[source]¶ Bases:
objectThis class implements a functional 1D domain defined by the range [inf, sup].
The size of the domain defined by
sup - inf +1is given by the functionlen().To test if
xis in the domain, use:x in domain
-
class
SimpleMorphoMath.SimpleMorphoMath1D.Function(values)[source]¶ Bases:
objectThis class implements a 1D function.
The parameters values is an iterable that define the initial values of the function.
The function domain is set to [0, len(values) -1].
-
filet= <SimpleMorphoMath.PrettyPrinting.Filet object>¶
-
plot(plot_type='umbra', mask=None, umbra_character=None, filet=None)[source]¶ Pretty print a function.
The parameter plot_type defines the type of plot:
curveumbradual
The parameter mask set a mask function to display suppressed and added levels.
The attribute black_pattern defines the character for a level on, minus_pattern for a suppressed level and plus_pattern for an added level, respectively.
-
translate(offset, padd_inf=True)[source]¶ Translate the function.
If the parameter padd_inf is set to True then the padding value is set to zero else to the sup of the function.
-
umbra_character= <SimpleMorphoMath.PrettyPrinting.UmbraCharacter object>¶
-
unit_ball= <SimpleMorphoMath.SimpleMorphoMath1D.BallStructuringElement object>¶
-
-
class
SimpleMorphoMath.SimpleMorphoMath1D.StructuringElement(offsets)[source]¶ Bases:
objectThis class implements a structuring element.
The parameter offsets is an iterable that contains the offsets of the pixels on of the structuring element.
The neighbor set \(N_G^+\) and \(N_G^-\) is defined in the article: Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms, Luc Vincent, IEEE Transactions on image processing, Vol. 2, No. 2, April 1993.
-
class
SimpleMorphoMath.SimpleMorphoMath1D.StructuringElementIterator(structuring_element, domain)[source]¶ Bases:
objectThis class implements a structuring element iterator.
The parameter structuring_element defines the structuring element and the parameter domain defines the domain of the lattice.
-
SimpleMorphoMath.SimpleMorphoMath1D.unit_ball= <SimpleMorphoMath.SimpleMorphoMath1D.BallStructuringElement object>¶ Unit ball structuring element.