scipy.datasets.
ascent#
- scipy.datasets.ascent()[Quelle]#
Ruft ein abgeleitetes Bild mit 8 Bit Graustufen und einer Auflösung von 512 x 512 Pixeln ab, das einfach in Demos verwendet werden kann.
Das Bild ist abgeleitet von https://pixnio.com/people/accent-to-the-top
- Parameter:
- None
- Rückgabe:
- ascentndarray
Bequemes Bild zum Testen und zur Demonstration
Beispiele
>>> import scipy.datasets >>> ascent = scipy.datasets.ascent() >>> ascent.shape (512, 512) >>> ascent.max() np.uint8(255)
>>> import matplotlib.pyplot as plt >>> plt.gray() >>> plt.imshow(ascent) >>> plt.show()