I am a beginner in OpenCv. I looked at opencv morphological dilation filter as maximum filter and how remove binary image noise in opencv? but I could not exactly understand how to use dilate function. I want to do some thing like this picture with the function:
http://up98.org/upload/server1/02/e/q42oinl73zpv7epkccrz.jpg
Would you please explain me step by step? Should I use this function?
void cvDilate(
IplImage* src,
IplImage* dst,
IplConvKernel* B = NULL,
int iterations = 1
)
If yes , what should i put instead of
IplImage* src
IplImage* dst
B
IplConvKernel* B = NUL
int iterations = 1
how is its Operation?
i mean that what should i do before i call the function?
what should i write in .h and .cpp
Thank you!!!