Research Article
Restoration of Partial Blurred Image Based on Blur Detection and Classification
Algorithm 1
Blur detection algorithm.
Input: blurred image with partial blurred regions , threshold , threshold . | Output: final blur detection result | = InitialDetection(); % Initial blur detection | = MeanShift(); % Color segmentation | % Segmentation Based Detection | For to , % The number of the segments | = 0; | = 0; | For = 1 to % The points of a segment | If % The th point in segment | ; | End If | ; | End for | If | ; | Else | ; | End If | End For | % Neighbour Refine | For to , % The number of segments | ; | For to % The number of the neighbours | | End | If and | ; | Else if and | ; | End If | end |
|