From 4174d5fef00e5f1b0cbf2c99c44954e12dd1b0e4 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Sat, 24 Sep 2011 15:05:16 +0200 Subject: [PATCH] A few fixes: give credit to scikit-learn guys, fix examples... --- CONTRIBUTORS.txt | 6 ++- doc/examples/plot_lena_tv_denoise.py | 4 +- doc/ext/LICENSE.txt | 43 +++++++++++++++ doc/ext/gen_rst.py | 6 ++- .../auto_examples/images/blank_image.png | Bin 0 -> 1508 bytes examples/plot_lena_tv_denoise.py | 51 ------------------ 6 files changed, 54 insertions(+), 56 deletions(-) create mode 100644 doc/source/auto_examples/images/blank_image.png delete mode 100644 examples/plot_lena_tv_denoise.py diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 8b2ff9ff..548f37c5 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -44,7 +44,8 @@ Incorporating CellProfiler's Sobel edge detector, build and bug fixes. - Emmanuelle Guillart - Total variation noise filtering + Total variation noise filtering, integration of CellProfiler's + mathematical morphology tools. - Maƫl Primet Total variation noise filtering @@ -60,3 +61,6 @@ - Kyle Mandli CSV to ReST code for feature comparison table. + +- The Scikit Learn team + From whom we borrowed the example generation tools. diff --git a/doc/examples/plot_lena_tv_denoise.py b/doc/examples/plot_lena_tv_denoise.py index c4000d38..4797aaed 100644 --- a/doc/examples/plot_lena_tv_denoise.py +++ b/doc/examples/plot_lena_tv_denoise.py @@ -21,7 +21,7 @@ from scipy import ndimage import matplotlib.pyplot as plt from scikits.image.filter import tv_denoise -l = scipy.lena() +l = scipy.misc.lena() l = l[230:290, 220:320] noisy = l + 0.4*l.std()*np.random.random(l.shape) @@ -48,4 +48,4 @@ plt.title('(more) TV denoising', fontsize=20) plt.subplots_adjust(wspace=0.02, hspace=0.02, top=0.9, bottom=0, left=0, right=1) - +plt.show() diff --git a/doc/ext/LICENSE.txt b/doc/ext/LICENSE.txt index c23b6bfc..3ebab893 100644 --- a/doc/ext/LICENSE.txt +++ b/doc/ext/LICENSE.txt @@ -66,3 +66,46 @@ products or services of Licensee, or any third party. 8. By copying, installing or otherwise using matplotlib 0.98.3, Licensee agrees to be bound by the terms and conditions of this License Agreement. + +The file + +- gen_rst.py + +was taken from the scikit-learn (http://scikit-learn.sourceforge.net), which +has the following license: + +New BSD License + +Copyright (c) 2007 - 2011 The scikit-learn developers. +All rights reserved. + + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + a. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + b. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + c. Neither the name of the Scikit-learn Developers nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + + + + diff --git a/doc/ext/gen_rst.py b/doc/ext/gen_rst.py index cb71a605..0cf8cbd2 100644 --- a/doc/ext/gen_rst.py +++ b/doc/ext/gen_rst.py @@ -1,10 +1,12 @@ """ -Example generation for the scikit learn +Example generation for the scikit image. Generate the rst files for the examples by iterating over the python example files. -Files that generate images should start with 'plot' +Files that generate images should start with 'plot'. + +This code was taken from the scikit-learn. """ import os diff --git a/doc/source/auto_examples/images/blank_image.png b/doc/source/auto_examples/images/blank_image.png new file mode 100644 index 0000000000000000000000000000000000000000..4913b99b19fe0e6f91c068f27ac80831ea473bf2 GIT binary patch literal 1508 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2ipk( z2{tlaE*H!I00m@8L_t(|+U?!HZ(CIu#_{J|w@K^*{UHP$2ryOZKm_7PtVp0r-9Ux^ zqNE6kKLCb`g^>kXrvnl~NbC_iYAHzzLmgPi)Z#Eunl^FeYrAsp%V5WG9AC$doNFKR z{Zy)|*ij?<$&>e-b7M;Y00000000000000000000001y>f!q1_=9Tk2An@PxsR_ON z%1OQUVy5}A@YkHA8tQTel66* z;}a_9vP$b{y{)g#jr`Z2;weO{YRz;DyQWlg zPA&*k$z?S)e_NGYmO#S~`9evH`A53@pt5)2<(w)DSxwC^E4(&Kpy5YLFWz~m>#N1i zcQB{&LROiJw-iML8XmZ}Ue%4&;;xq7$+OAHDa>W{Qfs88veBOV*XLv0Gbgl%}gKD)X|`=sU?$B zEmKnZ!(|#8ek>68ZsWBKAFh6ySp9lV;+(wUX|w zSL5$w8p@G4fyRNX6vCLr;dWKK<`sGb8Y8dU>0y2JFqtuOz_VF;Wi5=WXgNvYwX7<+ zSpp3|T6(2WirK=eU*{1-($xGd0uBEchfc1(jVH-2pCiy1gT-Ov>S=fRCjt#m#*Vcx zcI=Qzl>{$VBG4E>OPAtXx_;FXfrdZwg_3@c-R($r?~XuYAdADh>($t!a5<^6FiW7} z(=1(y-R&?rMG0L8N1!p7KtHH<*}gNSEF#eGsiET!S>$t>=-BaBw`-&cG<+L7I&R-N0u5h79oF^)+LYX)@CZ)<25F;Q(`I@1 z?-M#RIc8{#%fiqaFTqPgV=NYiF2U0JN_-!G%>%#$bs?j$KPS%|0jXQp@_`% z?alj&zB$K(0soypdz=RW}C_8=d0W~QMr z63uO9U0d1AdI~v#Mk0ZY3uC8`ZwGw8j}d4LeYEK1_FmhVKx3#QMW+yVYT|=@QxIq* z9_n6$+i7dB*Hc6Gp^->C_p<-oDd^juOG9I1+qs_^xl@?a=`;<%YYl8Fm5Occ=6!hBk@U!M(EIi>Pt(vyJjih)MBE`uw|SZw z8Y3I(UKWu11)7FNqT&J>1i`*X-o0$y(a=bwp