/**
 * cvi_filter_lib.js 1.94 (15-Dec-2010) (c) by Christian Effenberger 
 * All Rights Reserved. Source: filter.netzgesta.de
 * Library supports: booklet.js|
 * cvi_bevel.js|cvi_corner.js|cvi_curl.js|cvi_edge.js|cvi_strip.js|
 * cvi_glossy.js|cvi_instant.js|cvi_reflex.js|cvi_slide.js|cvi_sphere.js
 * Distributed under Netzgestade Non-commercial Software License Agreement.
 * This license permits free of charge use on non-commercial 
 * and private web sites only under special conditions. 
 * Read more at... http://www.netzgesta.de/cvi/LICENSE.html
**/

var cvi_matrix=new Object(); // External kernel matrix definitions
// REMEMBER: Used names should not match any of the filter names!!!
cvi_matrix.blur		= [[ 1, 2, 1],[ 2, 4, 2],[ 1, 2, 1]]; // blurs the image using the Gaussian method.
cvi_matrix.median	= [[ 1, 1, 1],[ 1, 1, 1],[ 1, 1, 1]]; // smoothes grainy images.
cvi_matrix.sharpen	= [[ 0,-1, 0],[-1, 9,-1],[ 0,-1, 0]]; // makes the image sharper.
cvi_matrix.sharper	= [[-1,-1,-1],[-1,16,-1],[-1,-1,-1]]; // makes the image even sharper.
cvi_matrix.sharp	= [[-1,-1,-1],[-1, 9,-1],[-1,-1,-1]]; // makes the image sharper.
cvi_matrix.sharpest	= [[-1,-2,-1],[-2,13,-2],[-1,-2,-1]]; // makes the image sharper.
cvi_matrix.bumplt	= [[ 1, 1, 0],[ 1, 1,-1],[ 0,-1,-1]]; // embosses the image. 
cvi_matrix.bumpbr	= [[-1,-1, 0],[-1, 1, 1],[ 0, 1, 1]]; // embosses the image. 
/*** add H E R E your personal convolution kernels  ***/
/*** additional edge detection convolution kernels  ***/
cvi_matrix.laplace1	= [[-1, 0,-1],[ 0, 4, 0],[-1, 0,-1]]; // embosses the image. 
cvi_matrix.laplace2	= [[ 0, 1, 0],[ 1,-4, 1],[ 0, 1, 0]]; // embosses the image. 
cvi_matrix.laplace3	= [[ 1, 1, 1],[ 1,-8, 1],[ 1, 1, 1]]; // embosses the image. 
cvi_matrix.laplace4	= [[ 1, 2, 1],[ 2,-12,2],[ 1, 2, 1]]; // embosses the image. 
cvi_matrix.embossbr	= [[-1,-1, 0],[-1, 0, 1],[ 0, 1, 1]]; // embosses the image. normalize with s=[1,0]
cvi_matrix.embosslt	= [[ 1, 1, 0],[ 1, 0,-1],[ 0,-1,-1]]; // embosses the image. normalize with s=[1,0]
cvi_matrix.edge1	= [[-5, 0, 0],[ 0, 0, 0],[ 0, 0, 5]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge2	= [[-5,-5,-5],[-5,39,-5],[-5,-5,-5]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge3	= [[-1,-1,-1],[-1, 8,-1],[-1,-1,-1]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge4	= [[-1,-1,-1],[ 0, 0, 0],[ 1, 1, 1]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge5	= [[-1,-1,-1],[ 2, 2, 2],[-1,-1,-1]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge6	= [[ 1, 1, 1],[ 1,-7, 1],[ 1, 1, 1]]; // edge detection. use s=[0-255,0-255]
cvi_matrix.edge7	= [[-1, 0, 1],[ 0, 0, 0],[ 1, 0,-1]]; // edge detection. use s=[0-255,0-255]

eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([9A-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('R 1z={version:1.94,released:\'2010-12-15 19:24:00\',2e:1p,2f:1p,2g:-1,CBunabled:navigator.userAgent.indexOf(\'WebKit\')!=-1&&!1q.external&&!1r.defaultCharset?1:0,add:1e(N,J,X,w,h){1e 2h(h,s,b){R c,f,u,p,q,t;c=9.C(A,9.D(0,9.H(b/S*A)));B(s==0){O[c,c,c]}F{u=h%1f;f=u%60;p=9.C(A,9.D(0,9.H((b*(S-s))/10000*A)));q=9.C(A,9.D(0,9.H((b*(2i-s*f))/2j*A)));t=9.C(A,9.D(0,9.H((b*(2i-s*(60-f)))/2j*A)));switch(9.floor(u/60)){1i 0:O[c,t,p];1i 1:O[q,c,p];1i 2:O[p,c,t];1i 3:O[p,q,c];1i 4:O[t,p,c];1i 5:O[c,p,q]}}O[0,0,0]};1e 1T(r,g,b){R rr,gr,br,h,a=9.D(r,g,b),i=9.C(r,g,b),d=a-i,n=a/A,s=(a!=0)?d/a:0;B(s==0){h=0}F{rr=(a-r)/d;gr=(a-g)/d;br=(a-b)/d;B(r==a){h=br-gr}F B(g==a){h=2+rr-br}F{h=4+gr-rr}h/=6;B(h<0){h++}}O[9.H(h*1f),9.H(s*S),9.H(n*S)]};1e 2k(y,u,v){O[9.C(A,9.D(0,9.H(y+v/0.2l))),9.C(A,9.D(0,9.H(y-0.39466*u-0.5806*v))),9.C(A,9.D(0,9.H(y+u/0.2m)))]};1e 2n(r,g,b){R y=0.1s*r+0.1t*g+0.1u*b;O[y,(b-y)*0.2m,(r-y)*0.2l]};1e 1U(v,e){B(1q.2o){1q.2o.1U(v+e)}F B(1q.2p){2p.postError(v+e)}F{1q.1r.title=v}O 1D};1e 1E(a,t){O(T X[a]===t?X[a]:1j[a])};B(N&&N.tagName.toUpperCase()=="CANVAS"){B(N.1k){R s,a,d,r,g,b,p,c,f,i,j,k,l,m,n,o,q,t,u,v,x=0,y=0,z=0,cb=1D,1v,L,Y,E,M,1j,1F,1V=1D;E=N.1k(\'2d\');B(E.Z){1F=2q}1j={"f":1z.2e,"m":1z.2f,"s":1z.2g};M=J.1k(\'2d\');B(X){G(i in 1j){B(!X[i]){X[i]=1j[i]}}}F{X=1j}f=1E(\'f\',\'string\');m=1E(\'m\',\'U\');c=(T X[\'s\']===\'U\')?X[\'s\']||-1:parseFloat(9.D(0,9.C(A,1E(\'s\',\'number\'))))||-1;B(M&&1F&&f!=1p&&w>0&&h>0&&!f.1W(/(1X|1Y|1Z|20|21)/i)){try{s=E.Z(0,0,1,1)}catch(2r){1V=2q;1U(2r.message,". Explanations:\\2s://en.wikipedia.2t/wiki/Same_origin_policy\\2s://www.w3.2t/TR/XMLHttpRequest/#exceptions")}}B(M&&f!=1p&&w>0&&h>0){w+=4;h+=4;B(1V||!1F||f.1W(/(1X|1Y|1Z|20|21)/i)){B(f=="21"){k=(c[0]>0?9.C(0.22,9.D(0.23,c[0])):0.5);m=(c[1]>=0?9.C(1,9.D(0,c[1])):0.4);l=(c[2]>0?Boolean(c[2]):0);v=(c[3]>0?9.C(8,9.D(1,c[3])):4);R 1l=1r.26(\'27\');1l.17=h-4;1l.18=w-4;R 1w=1r.26(\'27\');1w.17=h-4;1w.18=w-4;R 1x=1r.26(\'27\');1x.17=h-4;1x.18=w-4;R 2u=1l.1k(\'2d\'),2v=1w.1k(\'2d\'),11=1x.1k(\'2d\');2u.I(J,0,0,w-4,h-4);t=9.H(v*5);b=9.H(w*.75);q=9.H(h*.75);G(i=0;i<t;i++){r=9.D(2,9.H(b-(2*i)));g=9.D(2,9.H(q-(2*i)));M.1m(0,0,w-4,h-4);M.I(N,0,0,w,h,0,0,r,g);E.1m(0,0,w,h);E.I(J,0,0,r,g,0,0,w,h)}2v.I(N,2,2,w-4,h-4,0,0,w-4,h-4);E.I(1l,0,0,w-4,h-4,2,2,w-4,h-4);M.1m(0,0,w-4,h-4);11.1m(0,0,w-4,h-4);11.I(1l,0,0);11.2w="source-over";11.I(1w,0,0);11.2w="destination-out";R 13=11.createLinearGradient(0,0,(l?w-4:0),(l?0:h-4));13.1g(0,"1h(0,0,0,0)");B(k-(m/2)-0.05>=0.23){13.1g(k-(m/2)-0.05,"1h(0,0,0,0)")}B(k-(m/2)>=0.23){13.1g(k-(m/2),"1h(0,0,0,1)")}13.1g(k,"1h(0,0,0,1)");B(k+(m/2)<=0.22){13.1g(k+(m/2),"1h(0,0,0,1)")}B(k+(m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,h-4);v=(c>0?c:1);b=.25;m=b/v;E.2a();E.translate(w/2,h/2);G(i=0;i<v;i++){E.1a=b-(m*i);E.2a();E.2y((9.PI*i)/29);E.I(J,0,0,J.18,J.17,0-(w/2),0-(h/2),w,h);E.2b();E.2a();E.2y((9.PI*-i)/29);E.I(J,0,0,J.18,J.17,0-(w/2),0-(h/2),w,h);E.2b()}E.2b();M.I(N,0,0,w,h,0,0,w-4,h-4)}}F{B(f=="convolve"&&(T m===\'U\')&&m!=1p||(T 2z[f]===\'U\')){s=E.Z(x,y,w,h);a=s.V;d=E.Z(x,y,w,h);j=h;i=w;n=w*4;k=2z[f]||m;t=(c[0]>=0?c[0]:k[0][0]+k[0][1]+k[0][2]+k[1][0]+k[1][1]+k[1][2]+k[2][0]+k[2][1]+k[2][2]);m=(c[1]>=0?9.C(A,c[1]):0);G(j=h;j>0;j--){q=[(j-2)*n,(j-1)*n,j*n];G(i=w;i>0;i--){o=[q[0]+(i-2)*4,q[1]+(i-1)*4,q[2]+i*4];r=(a[o[0]-4]*k[0][0]+a[o[0]]*k[0][1]+a[o[0]+4]*k[0][2]+a[o[1]-4]*k[1][0]+a[o[1]]*k[1][1]+a[o[1]+4]*k[1][2]+a[o[2]-4]*k[2][0]+a[o[2]]*k[2][1]+a[o[2]+4]*k[2][2])/t;g=(a[o[0]-3]*k[0][0]+a[o[0]+1]*k[0][1]+a[o[0]+5]*k[0][2]+a[o[1]-3]*k[1][0]+a[o[1]+1]*k[1][1]+a[o[1]+5]*k[1][2]+a[o[2]-3]*k[2][0]+a[o[2]+1]*k[2][1]+a[o[2]+5]*k[2][2])/t;b=(a[o[0]-2]*k[0][0]+a[o[0]+2]*k[0][1]+a[o[0]+6]*k[0][2]+a[o[1]-2]*k[1][0]+a[o[1]+2]*k[1][1]+a[o[1]+6]*k[1][2]+a[o[2]-2]*k[2][0]+a[o[2]+2]*k[2][1]+a[o[2]+6]*k[2][2])/t;d.V[o[1]]=9.C(A,9.D(0,r+m));d.V[o[1]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D(0,(9.sqrt((l*l)+(m*m))/v)+b));d.V[i]=d.V[i+1]=d.V[i+2]=q}E.1M(d,x,y)}F B(f=="anaglyph"){M.I(N,2,2,w-4,h-4,0,0,w-4,h-4);E.I(J,0,0,w-4,h-4,0,0,w,h);s=E.Z(0,2,w-4,h-4);a=s.V;d=E.Z(4,2,w-4,h-4).V;G(i=0,n=a.K;i<n;i+=4){a[i]=d[i]}E.1M(s,2,2);M.I(N,2,2,w-4,h-4,0,0,w-4,h-4)}F{s=E.Z(x,y,w,h);a=s.V;B(f=="invertalpha"){G(i=0,n=a.K;i<n;i+=4){a[i+3]=A-a[i+3]}}F B(f=="invert"){G(i=0,n=a.K;i<n;i+=4){a[i]=A-a[i];a[i+1]=A-a[i+1];a[i+2]=A-a[i+2]}}F B(f=="grayscale"){G(i=0,n=a.K;i<n;i+=4){t=9.H(a[i]*0.1s+a[i+1]*0.1t+a[i+2]*0.1u);a[i]=a[i+1]=a[i+2]=t}}F B(f=="alphamask"){G(i=0,n=a.K;i<n;i+=4){t=9.H(a[i]*0.1s+a[i+1]*0.1t+a[i+2]*0.1u);a[i]=a[i+1]=a[i+2]=0;a[i+3]=A-t}}F B(f=="solarize"){G(i=0,n=a.K;i<n;i+=4){B(a[i]>1d){a[i]=A-a[i]}B(a[i+1]>1d){a[i+1]=A-a[i+1]}B(a[i+2]>1d){a[i+2]=A-a[i+2]}}}F B(f=="threshold"){v=(c>=0?9.C(2,c)*1d:1d);G(i=0,n=a.K;i<n;i+=4){t=9.H(a[i]*0.1s+a[i+1]*0.1t+a[i+2]*0.1u);t=t>=v?A:0;a[i]=t;a[i+1]=t;a[i+2]=t}}F B(f=="gamma"){g=(c>=0?c:1);t=W 1R();G(i=0;i<1y;i++){t[i]=9.C(A,9.D(0,(A*9.pow(i/A,1/g))+0.5))}G(i=0,n=a.K;i<n;i+=4){r=a[i];g=a[i+1];b=a[i+2];a[i]=t[r];a[i+1]=t[g];a[i+2]=t[b]}}F B(f=="colorkey"){l=(T c[0]===\'U\')?c[0]:[0,0,0];k=(T c[1]===\'U\')?c[1]:[A,A,A];G(i=0,n=a.K;i<n;i+=4){B((a[i]>=l[0]&&a[i]<=k[0])&&(a[i+1]>=l[1]&&a[i+1]<=k[1])&&(a[i+2]>=l[2]&&a[i+2]<=k[2])){a[i+3]=0}}}F B(f=="exposure"){v=(c>0?9.C(A,9.D(0,c)):1);B(v!=1){t=W 1R();G(i=0;i<1y;i++){t[i]=9.C(A,9.D(0,A*(1-9.exp(-(i/A)*v))))}G(i=0,n=a.K;i<n;i+=4){r=a[i];g=a[i+1];b=a[i+2];a[i]=t[r];a[i+1]=t[g];a[i+2]=t[b]}}}F B(f=="brightness"){v=(c>=0?c:1);G(i=0,n=a.K;i<n;i+=4){a[i]=9.C(A,9.D(0,a[i]*v));a[i+1]=9.C(A,9.D(0,a[i+1]*v));a[i+2]=9.C(A,9.D(0,a[i+2]*v))}}F B(f=="adjustyuva"){k=(c[0]>=0?c[0]:1);t=(c[1]>=0?c[1]:1);m=(c[2]>=0?c[2]:1);v=(c[3]>=0?c[3]:1);G(i=0,n=a.K;i<n;i+=4){1v=2n(a[i],a[i+1],a[i+2]);Y=2k(1v[0]*k,1v[1]*t,1v[2]*m);a[i]=Y[0];a[i+1]=Y[1];a[i+2]=Y[2];a[i+3]=9.C(A,9.D(0,a[i+3]*v))}}F B(f=="chromakey"){k=(c[0]>=0?9.C(1f,c[0]):1d);t=(c[1]>=0?9.C(1f,c[1]*3.6):36);m=(c[2]>=0?9.C(S,c[2]):88);r=(c[3]>=0?9.C(S,c[3]):30);b=(c[4]>=0?9.C(S,9.D(r,c[4])):82);G(i=0,n=a.K;i<n;i+=4){v=1T(a[i],a[i+1],a[i+2]);B(v[1]>=m&&(v[2]>=r&&v[2]<=b)&&(v[0]-k<t)&&(v[0]-k>(-t))){a[i+3]=9.abs(v[0]-k)/t}}}F B(f=="sepia"){G(i=0,n=a.K;i<n;i+=4){r=a[i];g=a[i+1];b=a[i+2];a[i]=9.C(A,9.D(0,r*.393+g*.769+b*.189));a[i+1]=9.C(A,9.D(0,r*.349+g*.686+b*.168));a[i+2]=9.C(A,9.D(0,r*.272+g*.534+b*.131))}}F B(f=="mixrgb"){k=(T c[0]===\'U\')?c[0]:[0,0,0];l=(T c[1]===\'U\')?c[1]:[0,0,0];G(i=0,n=a.K;i<n;i+=4){r=a[i];g=a[i+1];b=a[i+2];a[i]=9.C(A,9.D(0,(k[0]*(l[2]*g+(A-l[2])*b)/A+(A-k[0])*r)/A));a[i+1]=9.C(A,9.D(0,(k[1]*(l[0]*b+(A-l[0])*r)/A+(A-k[1])*g)/A));a[i+2]=9.C(A,9.D(0,(k[2]*(l[1]*r+(A-l[1])*g)/A+(A-k[2])*b)/A))}}F B(f=="posterize"){v=(c>0?9.C(16,9.D(1,c)):1);t=W 1R();G(i=0;i<1y;i++){t[i]=A*(v*i/1y)/(v-1)}G(i=0,n=a.K;i<n;i+=4){r=a[i];g=a[i+1];b=a[i+2];a[i]=9.C(A,9.D(0,t[r]));a[i+1]=9.C(A,9.D(0,t[g]));a[i+2]=9.C(A,9.D(0,t[b]))}}F B(f=="adjustrgba"){r=(c[0]>=0?c[0]:1);g=(c[1]>=0?c[1]:1);b=(c[2]>=0?c[2]:1);v=(c[3]>=0?c[3]:1);G(i=0,n=a.K;i<n;i+=4){a[i]=9.C(A,9.D(0,a[i]*r));a[i+1]=9.C(A,9.D(0,a[i+1]*g));a[i+2]=9.C(A,9.D(0,a[i+2]*b));a[i+3]=9.C(A,9.D(0,a[i+3]*v))}}F B(f=="contrast"){v=(c>=0?c:1);G(i=0,n=a.K;i<n;i+=4){a[i]=9.C(A,9.D(0,((((a[i]/A)-0.5)*v)+0.5)*A));a[i+1]=9.C(A,9.D(0,((((a[i+1]/A)-0.5)*v)+0.5)*A));a[i+2]=9.C(A,9.D(0,((((a[i+2]/A)-0.5)*v)+0.5)*A))}}F B(f=="adjusthsba"){k=(c[0]>=0?c[0]:1);t=(c[1]>=0?c[1]:1);m=(c[2]>=0?c[2]:1);v=(c[3]>=0?c[3]:1);G(i=0,n=a.K;i<n;i+=4){L=1T(a[i],a[i+1],a[i+2]);L[0]*=k;B(L[0]<0){L[0]=0}F B(L[0]>1f){L[0]=1f}L[1]*=t;B(L[1]<0){L[1]=0}F B(L[1]>S){L[1]=S}L[2]*=m;B(L[2]<0){L[2]=0}F B(L[2]>S){L[2]=S}Y=2h(L[0],L[1],L[2]);a[i]=Y[0];a[i+1]=Y[1];a[i+2]=Y[2];a[i+3]=9.C(A,9.D(0,a[i+3]*v))}}F B(f=="tritone"){k=(T c[0]===\'U\')?c[0]:[A,0,0];l=(T c[1]===\'U\')?c[1]:[0,A,0];m=(T c[2]===\'U\')?c[2]:[0,0,A];t=W 1R();G(i=0;i<2c;i++){q=i/1d;t[i]=[k[0]+q*(l[0]-k[0]),k[1]+q*(l[1]-k[1]),k[2]+q*(l[2]-k[2])]}G(i=2c;i<1y;i++){q=(i-1d)/2c;t[i]=[l[0]+q*(m[0]-l[0]),l[1]+q*(m[1]-l[1]),l[2]+q*(m[2]-l[2])]}G(i=0,n=a.K;i<n;i+=4){v=9.C(A,9.D(0,9.H(a[i]*0.1s+a[i+1]*0.1t+a[i+2]*0.1u)));a[i]=t[v][0];a[i+1]=t[v][1];a[i+2]=t[v][2]}}E.1M(s,x,y)}}}}}O 1D}}',[],160,'|||||||||Math|||||||||||||||||||||||||||255|if|min|max|ctx|else|for|round|drawImage|img|length|hsb|bcx|obj|return|dx|dy|var|100|typeof|object|data|new|opts|rgb|getImageData||ftx||stl|frc|||height|width||globalAlpha|||127|function|360|addColorStop|rgba|case|defopts|getContext|bfa|clearRect|sobel|Object|null|window|document|299|587|114|yuv|bfb|bfc|256|cvi_filter||||false|getArg|prepared|||||||putImageData|scharr|prewitt|kirsh|roberts|Array||rgb2hsb|log|exception|match|smooth|zoomblur|motionblur|spinblur|tiltshift|999|001|||createElement|canvas||180|save|restore|128||defaultF|defaultM|defaultS|hsb2rgb|6000|600000|yuv2rgb|877|493|rgb2yuv|console|opera|true|err|nhttp|org|btx|atx|globalCompositeOperation|while|rotate|cvi_matrix'.split('|'),0,{}))
