Files
scikit-image/doc/logo/shrink_logo.py
T
Paul Ivanov b4b090271d complete singularization of scikit-image
I've updated references in the code and documentation to the new name.
2012-10-08 16:29:55 -07:00

17 lines
432 B
Python

from skimage import io, transform
s = 0.7
img = io.imread('scikit_image_logo.png')
h, w, c = img.shape
print "\nScaling down logo by %.1fx..." % s
img = transform.homography(img, [[s, 0, 0],
[0, s, 0],
[0, 0, 1]],
output_shape=(int(h*s), int(w*s), 4),
order=3)
io.imsave('scikit_image_logo_small.png', img)