Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are using the plain C OpenCV API. Nothing wrong, but I prefer the new C++ API</p> <p>Regarding your question:</p> <ul> <li><p><code>IplImage* src</code> - is the source image, the one you already have and want it dilated;</p></li> <li><p><code>IplImage* dst</code> - is the destination image, that should only be declared prior to calling this funcion;</p></li> <li><p><code>IplConvKernel* B</code> - that's a bit harder to explain in short words, but thing of a tiny image, typically a 3x3 pixels, that will be use to get the features of your image "more fat" at each of the given number of iterations, check <a href="http://opencv.willowgarage.com/documentation/image_filtering.html#dilate" rel="nofollow">here</a>. If you let it be a null pointer, the default value will be used, and it should suffice for most applications;</p></li> <li><p><code>int iterations</code> - the number of times that kernel will be used around the contour of the source image to turn its features more "fat" at each time;</p></li> </ul> <p>As for your image, to achieve that result, you should first dilate for a certain number of iterations, then erode it back the same number of iterations.</p> <p>Check this code <a href="http://opencv.itseez.com/doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.html" rel="nofollow">here</a>.</p> <p>It uses the new C++ API, but you should not have problems into "translating" it back to the plain C API, as the structure of the functions are quite the same.</p> <p>Hope it helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload