ALGORITHM FOR REPLACEMENT OF THE BASIC COLORS OF A BITMAP IMAGE

Authors

  • D. D. Daryenko Kalashnikov ISTU
  • A. N. Solovyova Kalashnikov ISTU

DOI:

https://doi.org/10.22213/2410-9304-2019-1-34-39

Keywords:

color, color correction, color replacement, color transfer, image processing

Abstract

The paper describes an algorithm for replacement of the basic colors of a raster image with colors directly specified by a user or automatically derived from a sample image. The transformation is applied in HSV color space to the pixels with hues similar to the basic colors of the image which correspond to the local maxima of the hue histogram of the image. The mapping of the basic colors of the image into the new colors is set by the user or derived automatically. Pixels with low values of saturation or lightness are not subject to the transformation to avoid distortion of image structure and meaning. The alteration of the HSV color components is defined with cubic spline functions interpolating the differences between the original and target color components. A color replacement quality evaluation metric based on the comparison of the rate of pixels in the neighborhood of the basic colors at the histograms of the original and the resulting images excluding pixels of shades of gray is proposed. The developed algorithm is implemented in an image color modification system and can be applied both to local color replacement and to conversion of several images to a common color palette when combining images, preparing images for further analysis or applying art effects.

Author Biographies

D. D. Daryenko, Kalashnikov ISTU

Student

A. N. Solovyova, Kalashnikov ISTU

PhD in Engineering, Associate Professor

References

Solovyova, A. N. Using Contours and Colour Region Boundaries of Photographs in Sculptural Portrait Design / A. N. Solovyova, A. V. Kuchuganov // ГрафиКон’2009 : 19-я Междунар. конф. по компьютерной графике и зрению : тр. конф. М. : МАКС Пресс, 2009. С. 315-316.

Кучуганов А. В., Соловьева А. Н. Многоуровневое описание аэрокосмических снимков в задаче автоматизированного дешифрирования // Интеллектуальные системы в производстве. 2014. № 2(24). С. 164-166.

Color Transfer between Images / E. Reinhard, M. Ashikhmin, B. Gooch, P. Shirley // IEEE Computer Graphics and Applications - 2001. Vol. 21, issue 5. P. 34-41.

Color Transfer Using Adaptive Second-Order Total Generalized Variation Regularizer [Электронный ресурс] / B. Xie, C. Xu, Y. Han, R. K. F. Teng // IEEE Access. 2018. Vol. 6. P. 6829-6839. URL: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8248764 (дата обращения: 01.02.2019). DOI: 10.1109/ACCESS.2018.2789981.

Color Transfer between Images / E. Reinhard, M. Ashikhmin, B. Gooch, P. Shirley // IEEE Computer Graphics and Applications - 2001. Vol. 21, issue 5. P. 34-41.

Arbelot B., Vergne R., Hurtu T., Thollot J. Local texture-based color transfer and colorization // Computers & Graphics. 2017. Vol. 62. P. 15-27. DOI: 10.1016/j.cag.2016.12.005.

Gong, H., Finlayson G., Fisher R. Recoding Color Transfer as a Color Homography [Электронный ресурс] // Proc. of the British Machine Vision Conference (BMVC). BMWA Press, 2016. URL: http://www.bmva.org/bmvc/2016/papers/paper017/index.html (дата обращения: 01.02.2019). DOI: 10.5244/C.30.17.

Maslennikova A., Vezhnevets V. Interactive Local Color Transfer Between Images // ГрафиКон'2007 : 17-я Междунар. конф. по компьютерной графике и ее приложениям : тр. конф. М., 2007. С. 75-78.

Zhang Q., Laffont P.-Y., Sim T. Lighting Transfer across Multiple Views through Local Color Transforms // Proc. of SIGGRAPH ASIA 2016 Technical Briefs. Электрон. дан. 2016. URL: http://www.py-laffont.info/publications/SigAsia2016TechBrief.pdf (дата обращения: 01.02.2019). DOI: 10.1145/3005358.3005360.

Progressive Color Transfer with Dense Semantic Correspondences / M. He, J. Liao, L. Yuan, P. V. Sander // arXiv.org e-Print archive (дата публикации: 12.12.2018). URL: https://arxiv.org/pdf/1710.00756.pdf (дата обращения: 01.02.2019).

Agoston K. M. Computer Graphics and Geometric Modeling. London : Springer-Verlag, 2005. 908 p.

SIPI image Database - Misc. URL: http://sipi.usc.edu/database/database.php?volume=misc& (дата обращения: 01.02.2019).

Kodak Lossless True Color Image Suite. PhotoCD PCD0992. URL: http://r0k.us/graphics/kodak/index.html (дата обращения: 01.02.2019).

SIPI image Database - Misc. URL: http://sipi.usc.edu/database/database.php?volume=misc& (дата обращения: 01.02.2019).

Published

11.04.2019

How to Cite

Daryenko Д. Д., & Solovyova А. Н. (2019). ALGORITHM FOR REPLACEMENT OF THE BASIC COLORS OF A BITMAP IMAGE. Intellekt. Sist. Proizv., 17(1), 34–39. https://doi.org/10.22213/2410-9304-2019-1-34-39

Issue

Section

Articles