I am reading and trying to implement a research paper. It uses openGL to define which part of an image to use in order to reconstitute a big image composited of several images.

In order to do so, I have to generate several masks and multiply them together for each image.

One mask is the "focus mask", and they say:

We evaluate the per-pixel "focusness" of the source image using a sharpness operator that is the energy of the image Laplacian applied on a window of 20x20 pixels centered on each evaluated points.

My incomprehension is that: isn't Laplacian filter the convolution matrix:

 0  -1   0   or    -1  -1  -1
-1   4  -1         -1   8  -1
 0  -1   0         -1  -1  -1

But it's of size 3 x 3 and not 20 x 20. The fact that I'm not a native english speaker maybe fools me on the words and there is something I don't understand in this sentence...

EDIT : The PDF with the article is downloadable here for free. => §4.1 : Focus Mask

  • 1
    $\begingroup$ I think "window of 20x20 pixels" applies to "energy" rather than to "image Laplacian", i.e. you compute the Laplacian as usual, the compute its total energy (i.e. sum of squared values) on a window of 20x20 pixels. But you should add a link or reference to the research paper to be sure. $\endgroup$
    – user106
    Commented Jun 8, 2017 at 15:36
  • $\begingroup$ That would make sense, maybe this is it. I can't tell. But that's a good idea and I will try to implement it to see. You're right for the link, I will add it in the post. $\endgroup$
    – Raph Schim
    Commented Jun 9, 2017 at 9:53


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.