From: Marcin on
Hi,

I am working now on my OMR project. I am capturing document images from camera and I have a problem with uneven illumination. I have found document describing correction of uneven illumination: http://www.comp.nus.edu.sg/~tancl/Papers/DocEng2007/fp03-lu.pdf
I would like to use this proposed method in matlab 7.7, but I don't know how... I don't know how implement this paper in matlab. Can you help me in any way?
I will be very greatfull.

Regards,
Marcin Wiecek
From: Marcin on
I don't know if I well understood this paper.

I have written in my matlab the following code:
im = imread(‘image.jpg’); % 800x600 text image
im = imresize(im, [800 NaN]);
im = rgb2gray(im);
im = im2double(im);
h = sgsdf_2d(-400:400-1,-300:300-1,3,3,0,0);
filtered = imfilter(im,h,’replicate’,’conv’);
out = imsubtract(im,filtered);

this code gives me good result but it is very slow... but in this paper their algorithm is very fast...

How do you understand method proposed in this paper? If "globalize" means that in filter we choose neighbour window as big as our image?

"Marcin " <wiecek(a)gmail.com.remove.this> wrote in message <i07ti1$q73$1(a)fred.mathworks.com>...
> Hi,
>
> I am working now on my OMR project. I am capturing document images from camera and I have a problem with uneven illumination. I have found document describing correction of uneven illumination: http://www.comp.nus.edu.sg/~tancl/Papers/DocEng2007/fp03-lu.pdf
> I would like to use this proposed method in matlab 7.7, but I don't know how... I don't know how implement this paper in matlab. Can you help me in any way?
> I will be very greatfull.
>
> Regards,
> Marcin Wiecek