View Single Post
Old 8th May 2005, 23:54   #24  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
Quote:
Originally posted by Didée
x' = x^2

, if I'm not fully mistaken.
if the radius in photoshop is the standard deviation (sd) then it is correct. The reason I use variance instead of sd is because else the radius in binomial blur would be really odd (like squareroot 2.5) also I changed the old radius to this after the discussion in this thread.

Another thing currently I'm just using this formula to calculate the coefficient:
1/(2*pi*SD^2) * exp(-(x^2+y^2)/(2*SD^2))
but maybe it's more correct to use the mean value for the whole pixel. For instance when calculating the value for the center pixel I just set x=0 and y=0 but wouldn't it be more correct to use the area from x=-0.5 y=-0.5 to x=0.5 y=0.5?
tsp is offline   Reply With Quote