blur

Javascript - Disable submit button until 3 fields are not empty

随声附和 提交于 2019-12-11 12:04:55
问题 I have this almost working bit: http://jsfiddle.net/HFzkW/ My code looks like this: <div id="cform-container"> <div class="alignleft" id="cform"> <form action="<?php print site_url('/sent'); ?>" method="POST" > <input type="hidden" name="Contact-Form" value="contact-form" /> <div class="cform-row"> <div class="alignleft cform-label"><label for="yn">Your Name</label><span id="star5">*</span></div> <div class="alignright cform-ti"><input type="text" name="yn" id="yn" /><br /><span id="namespan"

Parallelize chain of Gaussian Blurs

此生再无相见时 提交于 2019-12-11 10:16:06
问题 I have this code (revisited version of this): void HessianDetector::detectOctaveKeypoints(const Mat &firstLevel, ...) { vector<Mat> blurs (par.numberOfScales+3, Mat()); blurs[1] = firstLevel; for (int i = 1; i < par.numberOfScales+2; i++){ float sigma = par.sigmas[i]* sqrt(sigmaStep * sigmaStep - 1.0f); blurs[i+1] = gaussianBlur(blurs[i], sigma); } ... Where: Mat gaussianBlur(const Mat input, const float sigma) { Mat ret(input.rows, input.cols, input.type()); int size = (int)(2.0 * 3.0 *

ckeditor blur and dialog

≡放荡痞女 提交于 2019-12-11 08:35:06
问题 I have a blur function attached to my ckeditor like so editor = CKEDITOR.instances.fck; editor.on("blur",function(e){ alert("hello"); }); you with me ? now when I click on the flash button the editor blurs and causes the alert to show. how to I stop that from happening and still get the alert to appear other times like when the user leave the editor area thanks again 回答1: As long as we're working on hacks, here's what I like to use to solve this problem. The key is that CKE uses iFrames for

Drawing blured shadow in JfreeChart?

早过忘川 提交于 2019-12-11 06:39:52
问题 That's is question is in the title of this post, but anyway: I use the JFreeChart to create chart in my app. And one of requirement is a soft blured shadow instead solid, which is presented by default. I know I can add my image instead the default shadow, using setShadowPaint(Paint paint); but this way implies the creating blured image and adding it to the my report. Is there built case to achive needed effect ? Thanks for all. 回答1: There's nothing built-in, but you can use a ConvolveOp to

Three.JS: Gaussian blur in GLSL shader

本秂侑毒 提交于 2019-12-11 06:04:07
问题 I have this vert/frag shader, which is using vertex data and two textures. I am trying to apply post blur effect, but having only rectangles after it. vert: attribute float type; attribute float size; attribute float phase; attribute float increment; uniform float time; uniform vec2 resolution; uniform sampler2D textureA; uniform sampler2D textureB; varying float t; void main() { t = type; vec4 mvPosition = modelViewMatrix * vec4(position, 1.0 ); if(t == 0.) { gl_PointSize = size * 0.8; }

PSF (point spread function) for an image (2D)

為{幸葍}努か 提交于 2019-12-11 05:13:26
问题 I'm new in image analysis (with Python) and I would like to apply the richardson_lucy deconvolution (from skimage) on my data (CT scans). For this reason, I estimated the PSF in "number of voxels" by means of a specific software. Its value is roughly 6.73 voxels, but I don't know how to use it as a paramter in the function. The function uses the PSF parameter as a ndarray, so I tried in this way: from skimage import io from pylab import array img = io.imread ("Slice1.tif") import skimage

jQuery blur() or focusout() not firing in Internet Explorer

风格不统一 提交于 2019-12-11 02:38:24
问题 So I have this form and I would like to do some stuff when the inputs loose focus. This is the code I have and it's working like a champ in every browser except Internet Explorer. function formstyle() { var focus = 0; //comentario is the ID of the input $("#comentario").focus(function() { //blablablabla }); $("#comentario").blur(function() { setTimeout(function() { var whatFocus = document.activeElement.tagName; if (whatFocus === "BODY") { focus = 0; //bla bla bla } }, 2); }); } $(document)

jQuery blur() on Chrome not working

岁酱吖の 提交于 2019-12-11 01:45:18
问题 I'm on MacOSX running this http://jsfiddle.net/q84wv/ on Chrome latest version. It won't work, while running that on Firefox it works perfectly, any clue? 回答1: Assuming that you want the alert() to be triggered either when the user tabs out from the anchor, or completes a click event, this should work: $('.menu a').on('blur mouseup',function(){ alert('oh'); }); Check this jsFiddle. It really depends what you're classing as blur here. If you're wanting it to trigger whenever the user's mouse

How to blur image using glsl shader without squares?

放肆的年华 提交于 2019-12-10 22:56:34
问题 I want to blur image with Gaussian blur algorithm. And I use the following shaders: Vertex shader attribute vec4 position; attribute vec4 inputTextureCoordinate; const int GAUSSIAN_SAMPLES = 9; uniform float texelWidthOffset; uniform float texelHeightOffset; varying vec2 textureCoordinate; varying vec2 blurCoordinates[GAUSSIAN_SAMPLES]; void main() { gl_Position = position; textureCoordinate = inputTextureCoordinate.xy; // Calculate the positions for the blur int multiplier = 0; vec2 blurStep

Creating a semi-transparent blurred background WPF

白昼怎懂夜的黑 提交于 2019-12-10 16:55:22
问题 I have a border, i want the background of this border to be partially transparent (opacity 0.8) but i do not want the image behind it to be well defined. The effect i am after is similar to the Windows Vista window border effect, where you can see that something is behind it but you cant tell what it is. A few clarifications: I am working on Windows XP, so i cant use Vista Glass I need this solution to be portable across any windows platform Any help would be appreciated :) 回答1: Extend Glass