Ask Your Question

Revision history [back]

OpenCV / C++ / Qt - Filling holes

Hello there,

For a personnel projet, I'm trying to detect object and there shadow. These are the result I have for now: Object: image description

Shadow: image description

The external contours of the object are quite good, but as you can see, my object is not full. Same for the shadow. I would like to get full contours, filled, for the object and its shadow, and I don't know how to get better than this (I juste use "dilate" for the moment). Does someone knows a way to obtain a better result please? Regards.

click to hide/show revision 2
None

updated 2018-10-02 03:10:47 -0600

berak gravatar image

OpenCV / C++ / Qt - Filling holes

Hello there,

For a personnel projet, I'm trying to detect object and there shadow. These are the result I have for now: Object: image description

Shadow: image description

The external contours of the object are quite good, but as you can see, my object is not full. Same for the shadow. I would like to get full contours, filled, for the object and its shadow, and I don't know how to get better than this (I juste use "dilate" for the moment). Does someone knows a way to obtain a better result please? Regards.

click to hide/show revision 3
retagged

updated 2018-10-02 03:10:58 -0600

berak gravatar image

OpenCV / C++ / Qt - Filling holes

Hello there,

For a personnel projet, I'm trying to detect object and there shadow. These are the result I have for now: Object: image description

Shadow: image description

The external contours of the object are quite good, but as you can see, my object is not full. Same for the shadow. I would like to get full contours, filled, for the object and its shadow, and I don't know how to get better than this (I juste use "dilate" for the moment). Does someone knows a way to obtain a better result please? Regards.

click to hide/show revision 4
retagged

updated 2018-10-02 03:11:48 -0600

berak gravatar image

OpenCV / C++ / Qt - Filling holes

Hello there,

For a personnel projet, I'm trying to detect object and there shadow. These are the result I have for now: Object: image description

Shadow: image description

The external contours of the object are quite good, but as you can see, my object is not full. Same for the shadow. I would like to get full contours, filled, for the object and its shadow, and I don't know how to get better than this (I juste use "dilate" for the moment). Does someone knows a way to obtain a better result please? Regards.

OpenCV / C++ / Qt - Filling holes

Hello there,

For a personnel projet, I'm trying to detect object and there shadow. These are the result I have for now: Original: image description

Object: image description

Shadow: image description

The external contours of the object are quite good, but as you can see, my object is not full. Same for the shadow. I would like to get full contours, filled, for the object and its shadow, and I don't know how to get better than this (I juste use "dilate" for the moment). Does someone knows a way to obtain a better result please? Regards.