Depth from Focus Criteria with Best Focal Distance