Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Filling a dynamic model

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.

Filling a dynamic model

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)[ContourImageModel.jpg](/upfiles/14425619267006238.jpg) ContourImageModel.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.

Filling a dynamic model

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/14425619267006238.jpg) ContourImageModel.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)[model.jpeg](/upfiles/1442561960979794.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.

Filling a dynamic model

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/14425619267006238.jpg) ContourImageModel.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/1442561960979794.jpeg)model.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.

Filling a dynamic model

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] ) image kiwi_defect.jpeg

I have create a dynamic model using Convex Hull This is the model [ContourImageModel.jpg] [ContourImageModel.jpg](/upfiles/14425619267006238.jpg) ContourImageModel.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/1442561960979794.jpeg)model.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.

Filling a dynamic model

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

I have create a dynamic model using Convex Hull This is the model [ContourImageModel.jpg] [ContourImageModel.jpg](/upfiles/14425619267006238.jpg) ContourImageModel.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/1442561960979794.jpeg)model.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.

  1. kiwi_defect.jpeg

  2. ContourImageModel.jpg

  3. model.jpeg

Thanks in Advance

Regards, Sarjoon.

Filling a dynamic model

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

I have create a dynamic model using Convex Hull This is the model [ContourImageModel.jpg] [ContourImageModel.jpg](/upfiles/14425619267006238.jpg) [ContourImageModel.jpg]

ContourImageModel.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/1442561960979794.jpeg)model.jpeg[model.jpeg](/upfiles/14425619881537103.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.

  1. kiwi_defect.jpeg

  2. ContourImageModel.jpg

  3. model.jpeg

Thanks in Advance

Regards, Sarjoon.