I have an image of a fruit like this :
here i need to expand/shrink the orange within the same boundary, ie fill up the white space of the same image. Resize would just change the overall image but not fill up the white space of the original image.
So I tried using contour to detect the boundary of the image but got stuck on how to expand the image after that.
Can anyone suggest on this please ?