function out=findreso(in)
global img t

t=in;
sigma=fmin('ff',0,5);
x=(0:0.001:11); y=exp(-(x.^2)/(sigma^2)/2);
yy=abs(max(y)/2-y); sigma=x(find(yy==min(yy)))*2;
out=sigma;

