Full search page →

Di Zenzo’s gradient direction

Optional · supplementary note 4 of 4 for IP 06 · Color Image Processing. Nothing in the main text depends on it; citation numbers refer to the reference list at the bottom of this page.

Navigate: this page and this track: Navigate: this page and this track

This note completes the color edge detector of the main text, which uses only the edge strength. With the structure-tensor entries gxxg_{xx}, gyyg_{yy}, gxyg_{xy} defined there, Di Zenzo [13] gives the direction of maximum change and the rate of change in that direction as

θ(x,y)=12tan⁡−1 ⁣(2gxygxx−gyy),Fθ(x,y)={12[(gxx+gyy)+(gxx−gyy)cos⁡2θ+2gxysin⁡2θ]}1/2.\theta(x, y) = \frac12 \tan^{-1}\!\left( \frac{2 g_{xy}}{g_{xx} - g_{yy}} \right), \qquad F_\theta(x, y) = \left\{ \frac12 \Big[ (g_{xx} + g_{yy}) + (g_{xx} - g_{yy}) \cos 2\theta + 2 g_{xy} \sin 2\theta \Big] \right\}^{1/2}.

θ\theta is the gradient direction (use arctan2 and also test θ+90∘\theta + 90^\circ, since the formula gives both extrema), and FθF_\theta the edge strength. Equivalently, Fθ2F_\theta^2 is the largest eigenvalue λmax⁡\lambda_{\max} of the structure tensor, which is the numerically safer way to compute it.

References

  1. R. C. Gonzalez and R. E. Woods, Digital Image Processing, 4th ed., Pearson, 2018, Ch. 6. publisher page
  2. C. Wyman, P.-P. Sloan, and P. Shirley, “Simple Analytic Approximations to the CIE XYZ Color Matching Functions,” Journal of Computer Graphics Techniques, vol. 2, no. 2, 2013. jcgt.org
  3. IEC 61966-2-1:1999, “Multimedia systems and equipment – Colour measurement and management – Part 2-1: Colour management – Default RGB colour space – sRGB,” IEC, 1999. IEC webstore
  4. Recommendation ITU-R BT.709-6, “Parameter values for the HDTV standards for production and international programme exchange,” ITU, 2015. ITU
  5. ISO/CIE 11664-4:2019, “Colorimetry – Part 4: CIE 1976 L*a*b* colour space,” ISO/CIE, 2019. standard page
  6. Recommendation ITU-R BT.601-7, “Studio encoding parameters of digital television for standard 4:3 and wide screen 16:9 aspect ratios,” ITU, 2011. ITU
  7. P. Kovesi, “Good Colour Maps: How to Design Them,” arXiv:1509.03700, 2015. arXiv
  8. S. van der Walt and N. Smith, viridis colormap design notes (BIDS project page; presented at SciPy 2015), 2015. project page
  9. F. Crameri, G. E. Shephard, and P. J. Heron, “The misuse of colour in science communication,” Nature Communications, vol. 11, art. 5444, 2020. PMC
  10. G. Buchsbaum, “A spatial processor model for object colour perception,” Journal of the Franklin Institute, vol. 310, no. 1, pp. 1–26, 1980. DOI
  11. J. van de Weijer, T. Gevers, and A. Gijsenij, “Edge-Based Color Constancy,” IEEE Transactions on Image Processing, vol. 16, no. 9, pp. 2207–2214, 2007. DOI
  12. R. Lukac, B. Smolka, K. Martin, K. N. Plataniotis, and A. N. Venetsanopoulos, “Vector Filtering for Color Imaging,” IEEE Signal Processing Magazine, vol. 22, no. 1, pp. 74–86, Jan. 2005. PDF
  13. S. Di Zenzo, “A note on the gradient of a multi-image,” Computer Vision, Graphics, and Image Processing, vol. 33, pp. 116–125, 1986. DOI
  14. A. Gijsenij, T. Gevers, and J. van de Weijer, “Computational Color Constancy: Survey and Experiments,” IEEE Transactions on Image Processing, vol. 20, no. 9, pp. 2475–2489, 2011. DOI
  15. J. T. Barron and Y.-T. Tsai, “Fast Fourier Color Constancy,” CVPR, 2017. arXiv
  16. Y. Hu, B. Wang, and S. Lin, “FC4: Fully Convolutional Color Constancy with Confidence-Weighted Pooling,” CVPR, 2017. paper
  17. M. Afifi and M. S. Brown, “Deep White-Balance Editing,” CVPR, 2020. arXiv
  18. R. Zhang, P. Isola, and A. A. Efros, “Colorful Image Colorization,” arXiv:1603.08511, 2016. arXiv
  19. S. Anwar, M. Tahir, C. Li, A. Mian, F. S. Khan, and A. W. Muzaffar, “Image Colorization: A Survey and Dataset,” arXiv:2008.10774, 2020. arXiv
  20. X. Kang, T. Yang, W. Ouyang, P. Ren, L. Li, and X. Xie, “DDColor: Towards Photo-Realistic Image Colorization via Dual Decoders,” ICCV, 2023. arXiv