Hi all,
I am working a project where I have to create a dynamic model for the received input image. This is the input image( [kiwi_defect.jpeg] ) kiwi_defect.jpeg
I have create a dynamic model using Convex Hull This is the model [ContourImageModel.jpg] [ContourImageModel.jpg](/upfiles/1442561406432402.jpg)
I want to fill the model with respective to of the original image Thing is I need to compare the convexhull model with original image and need to fill the pixels except that the black area in the the original image need to be filled with the surrounding white pixels. Like this image [model.jpeg] [model.jpeg](/upfiles/14425615607694051.jpeg)
And I have a problem in filling it in that manner. Please help me in this. Is this any function is there in opencv which will help me to compare the neighbouring pixels and fill the current pixel.. ?
I know that this requires some analytical thinking and knowledge which I am lagging at. And I know there is median filter, flood fill functions which I think its not a proper way to fill.
So please guide me in this.
Thanks in Advance
Regards, Sarjoon.