|
From: <fer...@us...> - 2009-10-16 02:11:22
|
Revision: 7886
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7886&view=rev
Author: fer_perez
Date: 2009-10-16 02:11:14 +0000 (Fri, 16 Oct 2009)
Log Message:
-----------
Fix that imdenoise tries to slice into the gray-level moonlanding image as
if it were color.
Fix contributed by Stefan van der Walt.
Modified Paths:
--------------
trunk/py4science/examples/fft_imdenoise.py
Modified: trunk/py4science/examples/fft_imdenoise.py
===================================================================
--- trunk/py4science/examples/fft_imdenoise.py 2009-10-14 20:33:45 UTC (rev 7885)
+++ trunk/py4science/examples/fft_imdenoise.py 2009-10-16 02:11:14 UTC (rev 7886)
@@ -40,7 +40,7 @@
#@ - extract all rows, all columns, 0-th plane to get the first
#@ channel
#@ - the resulting array should have 2 dimensions only
- im = plt.imread('data/moonlanding.png').astype(float)[:,:,0] #@
+ im = plt.imread('moonlanding.png').astype(float) #@
print "Image shape:",im.shape
except:
print "Could not open image."
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|