added sharpness estimation