Use about 10% of maximum gradient for refinement threshold