|
||
Title: Mean Value Blurring Post by Barukh on Apr 8th, 2014, 9:00am Consider a representation of a visual image as rectangular matrix NxN, where every element represents the color of a pixel – a positive real number in interval [0..R]. This image undergoes an iterative process of blurring according to the following procedure: At iteration i, every pixel color is replaced by an arithmetic mean of colors of itself and all its neighbours (horizontal, vertical, diagonal) at the iteration i-1. Assume that all operations are performed mathematically. We are interested in the following question: What happens after infinite number of blurring iterations? Specifically, is it necessarily the case that the final image will be homogeneous (that is, every pixel has the same color)? Consider also the following variants of image representation: A. Colors are positive integers, and integer arithmetic is used. B. Colors are positive integers, but this time floating point arithmetic is used, and the result is round to the nearest integer. |
||
Title: Re: Mean Value Blurring Post by Barukh on Apr 9th, 2014, 1:37am Just to be clear: In image processing, the procedure described above is called Mean Filtering with 3x3 square kernel (http://homepages.inf.ed.ac.uk/rbf/HIPR2/mean.htm). |
||
Title: Re: Mean Value Blurring Post by towr on Apr 9th, 2014, 10:23am How do we treat the edge cases? In the original statement, well, there's just fewer neighbours on the edges; but if you use a 3x3 kernel, then it matter what you do with the non-existent values beyond the border. (If you set the beyond-border values to zero, or extend to infinity, then all color bleeds off eventually.) |
||
Title: Re: Mean Value Blurring Post by Barukh on Apr 9th, 2014, 10:36am on 04/09/14 at 10:23:33, towr wrote:
You count only the neighbours in the image (so, for instance, the corner pixel will have 3 neighbours). |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |