Restoration of Degraded Image with Partial Blurred Regions Based on Blur Detection and Classification