MCPcopy Create free account
hub / github.com/SimpleITK/SimpleITK / MinimumMaximum

Function MinimumMaximum

Wrapping/Python/SimpleITK/extra.py:29–44  ·  view source on GitHub ↗

Computes the minimum and the maximum intensity values of an image. This is a custom overloaded python method, which returns the minimum and maximum measurements as a tuple. Also See -------- itk::simple::MinimumMaximumImageFilter for the object-oriented interface :para

(image: Image)

Source from the content-addressed store, hash-verified

27
28
29def MinimumMaximum(image: Image) -> Tuple[float, float]:
30 """
31 Computes the minimum and the maximum intensity values of an image.
32
33 This is a custom overloaded python method, which returns the minimum and maximum measurements as a tuple.
34
35 Also See
36 --------
37 itk::simple::MinimumMaximumImageFilter for the object-oriented interface
38
39 :param image:
40 :return:
41 """
42 f = MinimumMaximumImageFilter()
43 f.Execute(image)
44 return f.GetMinimum(), f.GetMaximum()
45
46
47def Resample(

Callers

nothing calls this directly

Calls 1

ExecuteMethod · 0.45

Tested by

no test coverage detected