I have a 2D image, each pixel can have one of the 4 values: 1 (red), 2 (gray blue), 3 (yellow) and 4 (orange).
I want to detect the contour of this image and associated pixels like this:
I actually use C# and have very limited access to popular library like openCV, etc. Could you provide me some hints to solve this problem?
Thanks,