How to apply Blur filter? #24
-
Discuss algorithm on how to apply |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
By applying Blur filter to an image, The output of the image looks like little bit softer ( Something that can't visible clearly ) |
Beta Was this translation helpful? Give feedback.
-
Pseudocode for Blur Filter--> Make a temporary copy of the original picture to work with. |
Beta Was this translation helpful? Give feedback.
Pseudocode for Blur Filter
--> Make a temporary copy of the original picture to work with.
--> For a certain pixel:- (If it's not in the edge of the picture)-:
• Find the average of the 3x3 matrix with the pixel in question at the centre for R, G and B
• Store the three averages of R, G, B in the corresponding pixel of the temporary copy image.
:- If it's on the top edge (except corner pixels):
• Find the average of the 2x3 matrix with the pixel in question at the position (1,2) for R, G and B.
• Store the three averages of R, G, B in the corresponding pixel of the temporary copy image.
:- If it's on the bottom edge (except corner pixels):
• Find the average of the 2x3 matrix with the pix…