Fixed "Mat mask operations" tutorial. Thanks @RJ2 for pointing this.

This commit is contained in:
Daniil Osokin 2014-03-21 20:32:14 +04:00
parent 244f126ff6
commit 04b1822cff

View File

@ -92,7 +92,7 @@ We'll use the plain C [] operator to access pixels. Because we need to access mu
}
}
On the borders of the image the upper notation results inexistent pixel locations (like minus one - minus one). In these points our formula is undefined. A simple solution is to not apply the mask in these points and, for example, set the pixels on the borders to zeros:
On the borders of the image the upper notation results inexistent pixel locations (like minus one - minus one). In these points our formula is undefined. A simple solution is to not apply the kernel in these points and, for example, set the pixels on the borders to zeros:
.. code-block:: cpp