Convenience functions to load example images.

This commit is contained in:
andy
2011-09-25 15:04:51 -07:00
committed by Stefan van der Walt
parent f3b8aec67f
commit 41ed86d49b
5 changed files with 46 additions and 3 deletions
+2 -1
View File
@@ -20,9 +20,10 @@ import numpy as np
import matplotlib.pyplot as plt
from scikits.image import data
from scikits.image import color
from scikits.image.filter import tv_denoise
l = data.lena()
l = color.rgb2gray(data.lena())
l = l[230:290, 220:320]
noisy = l + 0.4*l.std()*np.random.random(l.shape)