I am just processing an image, looking at things such as colour and contrast. How ever my issue is analysing the complementary colours in the image and trying to do this efficiently.
Firstly I have got the pixel rgb. I have then converted to HSV and increase the hue and return to rgb, hence obtaining the complementary colour. I am then looking at its closet neighbours to see if any of these are complementary colours. How ever given these are pixels, it is rare one would find the central pixel to be a complementary – hence I do not feel this is very efficient.
Or another idea… to segment the image in accordance to colour regions and work out the distance from one region to another if there is a region with the complementary colours.
Any ideas and any ideas on how to efficiently code this?
Thanks
So I eventually worked out roughly how to do this, either by a very slow way or a slightly faster way:
Otherwise