Lets say I have two objects very close to each other. There is a colour difference between them, but the difference is small. Therefore when finding contours, both the objects are treated like on object. Is there a way to make the difference in colour more significant? As in exponentially increase the small difference in colour? Or if not possible how would I make these objects stand out from each other?
I am using OpenCV please suggest solutions possible in that library.