First of all, I want to point out that my English is very poor, please understand.
After using the edge of the Sobel operator to detect color images, a color image with edge information is often generated. How does the Sobel operator determine the color of each pixel in the color image?
As shown in the picture,
The left image is the original image, the right image is generated after the Sobel edge detection, as shown on the right, I want to detect the level of the liquid level after the Sobel edge detection, it is red, and the other edges of the detection are other colors, and this is why?
If I change the background to blue, the detected liquid level will be blue.
Why does the edge of the liquid level change with the color of the background, and what is the color of the image generated by Sobel based on the principle of color?