etspy.base.CommonStack.normalize(width: int = 3) Self[source]

Create a copy of a stack with normalized contrast levels.

Parameters:
width: int = 3

Number of standard deviations from the mean to set as maximum intensity level.

Returns:

normalized – Copy of the input stack with intensities normalized

Return type:

Self

Examples

>>> import etspy.datasets as ds
>>> stack = ds.get_needle_data()
>>> s_normalized = stack.normalize()