Detection of false color in an image
Devices, methods, and systems for detecting false color in an image. An edge preserving filter is applied to an image sensor output to generate a first demosaiced image. A low pass filter is applied to the image sensor output to generate a second demosaiced image. A hue difference between the first demosaiced image and the second demosaiced image is calculated. A false color region is detected responsive to the hue difference exceeding a threshold hue difference.
1. A computing device configured to detect false color in an image, the device comprising:
circuitry configured to apply an edge preserving filter to an image sensor output to generate a first demosaiced image;
circuitry configured to apply a low pass filter to the image sensor output to generate a second demosaiced image;
circuitry configured to calculate a hue difference between the first demosaiced image and the second demosaiced image; and
circuitry configured to detect a false color region responsive to the hue difference exceeding a threshold hue difference.
2. The device as in claim 1 , wherein the image sensor output comprises a Bayer image.
3. The device as in claim 1 , wherein the image sensor comprises a color filter array.
4. The device as in claim 1 , wherein the edge preserving filter comprises a local linear model interpolation.
5. The device as in claim 1 , wherein the low pass filter comprises an averaging interpolation.
6. The device as in claim 1 , wherein applying the edge preserving filter to the image sensor output further comprises applying a filter to neighboring pixels in a core window surrounding a pixel to determine a color value for the pixel.
7. The device as in claim 1 , wherein applying the low pass filter to the image sensor output further comprises determining a weighted average of neighboring pixels in a core window surrounding a pixel to determine a color value for the pixel.
8. The device as in claim 1 , wherein the first demosaiced image and the second demosaiced image comprise color triplets.
9. A method for detecting false color in an image, the method comprising:
applying an edge preserving filter to an image sensor output to generate a first demosaiced image;
applying a low pass filter to the image sensor output to generate a second demosaiced image;
calculating a hue difference between the first demosaiced image and the second demosaiced image; and
detecting a false color region responsive to the hue difference exceeding a threshold hue difference.
10. The method as in claim 9 , wherein the image sensor comprises a color filter array.
11. The method as in claim 9 , wherein the edge preserving filter comprises a local linear model interpolation.
12. The method as in claim 9 , wherein the low pass filter comprises an averaging interpolation.
13. The method as in claim 9 , wherein applying the edge preserving filter to the image sensor output further comprises applying a filter to neighboring pixels in a core window surrounding a pixel to determine a color value for the pixel.
14. The method as in claim 9 , wherein applying the low pass filter to the image sensor output further comprises determining a weighted average of neighboring pixels in a core window surrounding a pixel to determine a color value for the pixel.
15. The method as in claim 9 , wherein the first demosaiced image and the second demosaiced image comprise color triplets.
16. The method as in claim 9 , wherein the image sensor output comprises a Bayer image.
17. A non-transitory computer readable medium having instructions thereon which when executed by a processor cause the processor to: apply an edge preserving filter to an image sensor output to generate a first demosaiced image; apply a low pass filter to the image sensor output to generate a second demosaiced image; calculate a hue difference between the first demosaiced image and the second demosaiced image; and detect a false color region responsive to the hue difference exceeding a threshold hue difference.
18. The non-transitory computer readable medium as in claim 17 , wherein the image sensor output comprises a Bayer image.
19. The non-transitory computer readable medium as in claim 17 , wherein the edge preserving filter comprises a local linear model interpolation.
20. The non-transitory computer readable medium as in claim 17 , wherein the low pass filter comprises an averaging interpolation.