<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">inform</journal-id><journal-title-group><journal-title xml:lang="ru">Информатика</journal-title><trans-title-group xml:lang="en"><trans-title>Informatics</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">1816-0301</issn><issn pub-type="epub">2617-6963</issn><publisher><publisher-name>UIIP NASB</publisher-name></publisher></journal-meta><article-meta><article-id custom-type="elpub" pub-id-type="custom">inform-867</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ОБРАБОТКА СИГНАЛОВ, ИЗОБРАЖЕНИЙ, РЕЧИ, ТЕКСТА И РАСПОЗНАВАНИЕ ОБРАЗОВ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>SIGNAL, IMAGE, SPEECH, TEXT PROCESSING AND PATTERN RECOGNITION</subject></subj-group></article-categories><title-group><article-title>Алгоритм быстрого вычисления локальных гистограмм изображения на видеокарте</article-title><trans-title-group xml:lang="en"><trans-title>Аlgorithm of fast computation of local image histograms on video card1</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Троцкий</surname><given-names>Ф. С.</given-names></name><name name-style="western" xml:lang="en"><surname>Trotski</surname><given-names>Ph. S.</given-names></name></name-alternatives><bio xml:lang="ru"><p>младший научный сотрудник</p></bio><bio xml:lang="en"><p>Junior Researcher</p></bio><email xlink:type="simple">trotskiphilipp@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Залесский</surname><given-names>Б. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Zalesky</surname><given-names>B. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>доктор физикоматематических наук, заведующий лабораторией обработки и распознавания изображений</p></bio><bio xml:lang="en"><p>Dr. Sc. (Phys.-Math.), Head of the Laboratory of Image Processing and Recognition</p></bio><email xlink:type="simple">zalesky@newman.bas-net.by</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Объединенный институт проблем информатики Национальной академии наук Беларуси, Минск</institution></aff><aff xml:lang="en"><institution>The United Institute of Informatics Problems of the National Academy of Sciences of Belarus, Minsk</institution></aff></aff-alternatives><pub-date pub-type="collection"><year>2019</year></pub-date><pub-date pub-type="epub"><day>26</day><month>03</month><year>2019</year></pub-date><volume>16</volume><issue>1</issue><fpage>49</fpage><lpage>57</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Троцкий Ф.С., Залесский Б.А., 2019</copyright-statement><copyright-year>2019</copyright-year><copyright-holder xml:lang="ru">Троцкий Ф.С., Залесский Б.А.</copyright-holder><copyright-holder xml:lang="en">Trotski P.S., Zalesky B.A.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://inf.grid.by/jour/article/view/867">https://inf.grid.by/jour/article/view/867</self-uri><abstract><p>Рассматривается алгоритм параллельного вычисления гистограмм различных типов, в том числе яркости и ориентированного градиента, предназначенный для выполнения на видеокартах, которые поддерживают массивные параллельные вычисления. В настоящее время локальные гистограммы используются для решения задач обработки и распознавания изображений, однако их применение ограничено из-за большого времени вычисления для всех пикселов изображения. Одна из основных трудностей, возникающих при вычислении этих векторных признаков, – большое число конфликтов одновременного доступа к ячейкам видеопамяти, в которые записываются одинаковые значения характеристики. В предложенном алгоритме существенно уменьшено число конфликтов одновременного доступа, что позволило значительно уменьшить время его выполнения. Так, например, девятимерные векторы локальных гистограмм ориентированного градиента для всех 256×256 окон изображения размера HD вычисляются на видеокарте GPU NVIDIA GeForce GTX 1060 за 1,9 мс, в то время как на процессоре Intel Core i7-6700 c частотой 3,4 ГГц – за 151 мс.</p></abstract><trans-abstract xml:lang="en"><p>An algorithm of parallel computation of image histograms of different types, including brightness and oriented gradient ones, on video cards of various types is presented. Now local histograms are used for solution of some tasks of image processing and recognition, but their application is restricted due to the long computational time. One of the difficulties appearing during parallel computations of this vector feature is the large number of conflicts of simultaneous access to video memory sells. In the developed version, the number of conflicts of simultaneous access are many times reduced. It accelerated the computations. For instance, 9D vectors of histograms of oriented gradient for all 256×256 windows of a HD image are calculated on the GPU NVIDIA GeForce GTX 1060 within 1,9 msec, whereas the same computations made by the CPU Intel Core i7-6700 take 151 msec.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>изображения</kwd><kwd>локальные гистограммы</kwd><kwd>алгоритм</kwd><kwd>параллельная версия</kwd><kwd>CUDA</kwd></kwd-group><kwd-group xml:lang="en"><kwd>images</kwd><kwd>local histograms</kwd><kwd>algorithm</kwd><kwd>parallel version</kwd><kwd>CUDA</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Gonzalez, R. Цифровая обработка изображений / R. Gonsalez, R. Woods. – М. : Техносфера, 2005. – 1070 c.</mixed-citation><mixed-citation xml:lang="en">Gonzalez R., Woods R. Cifrovaya obrabotka izobrazhenij [Digital Image Processing]. Moscow, Tehnosfera, 2005, 1070 p.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Dalal, N. Histograms of oriented gradients for human detection / N. Dalal, B. Triggs // Proc. of the IEEE Computer Society Conf. on Computer Vision and Pattern Recognition (CVPR’2005). – San Diego, 2005. – Vol. 1. – P. 886–893.</mixed-citation><mixed-citation xml:lang="en">Dalal N., Triggs B. Histograms of oriented gradients for human detection. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’2005). San Diego, 2005,</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Rotation invariant histogram of oriented gradients / M. Cheon [et al.] // Intern. J. of Fuzzy Logic and Intelligent Systems. – 2011. – Vol. 11, no. 4. – P. 293–298.</mixed-citation><mixed-citation xml:lang="en">vol. 1, pp. 886–893.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Marimon, D. Orientation histogram-based matching for region tracking / D. Marimon, T. Ebrahimi // Eighth Intern. Workshop on Image Analysis for Multimedia Interactive Services (WIAMIS’07). – Santorini, Greece, 2007. – P. 8.</mixed-citation><mixed-citation xml:lang="en">Cheon M., Lee W., Hyun C.-H., Park M. Rotation invariant histogram of oriented gradients. International Journal of Fuzzy Logic and Intelligent Systems, 2011, vol. 11, no. 4, pp. 293–298.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Ragb, H. Histogram of oriented phase and gradient (HOPG) descriptor for improved pedestrian detection / H. Ragb, V. Asari // IS&amp;T Intern. Conf. on Electronic Imaging: Video Surveillance and Transportation Imaging Applications. – San Francisco, 2016.</mixed-citation><mixed-citation xml:lang="en">Marimon D., Ebrahimi T. Orientation histogram-based matching for region tracking. Eighth International Workshop on Image Analysis for Multimedia Interactive Services (WIAMIS’07). Santorini, Greece, 2007, p. 8.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Ragb, H. Histogram of oriented phase (HOP): a new descriptor based on phase congruency / H. Ragb, V. Asari // Proc. SPIE 9869, Mobile Multimedia/Image Processing, Security, and Applications. – Bellingham, 2016. – Vol. 98690.</mixed-citation><mixed-citation xml:lang="en">Ragb H., Asari V. Histogram of oriented phase and gradient (HOPG) descriptor for improved pedestrian detection. IS&amp;T International Conference on Electronic Imaging: Video Surveillance and Transportation Imaging Applications. San Francisco, 2016.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Facial expression recognition based on facial components detection and HOG features / J. Chen [et al.] // Scientific Cooperations Intern. Workshops on Electrical and Computer Engineering Subfields, 22–23 Aug. 2014, Istanbul, Turkey. – Istanbul, 2014. – P. 64–69.</mixed-citation><mixed-citation xml:lang="en">Ragb H., Asari V. Histogram of oriented phase (HOP): a new descriptor based on phase congruency. Proceedings SPIE 9869, Mobile Multimedia/Image Processing, Security, and Applications. Bellingham, 2016,</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Harris, M. Using Shared Memory in CUDA C/C++ [Electronic recource] / M. Harris. – Mode of access: https://devblogs.nvidia.com/using-shared-memory-cuda-cc. – Date of access: 26.09.2018.</mixed-citation><mixed-citation xml:lang="en">vol. 98690. DOI: 10.1117/12.2225159</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Залесский, Б. А. Параллельная версия детектора экстремальных особых точек / Б. А. Залесский, Ф. С. Троцкий // Информатика. – 2018. – Т. 15, № 2. – С. 55–63.</mixed-citation><mixed-citation xml:lang="en">Chen J., Chen Z., Chi Z., Fu H. Facial expression recognition based on facial components detection and HOG features. Scientific Cooperations International Workshops on Electrical and Computer Engineering Subfields, 22–23 August 2014, Istanbul, Turkey. Istanbul, 2014, рр. 64–69.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Булашев, С. В. Статистика для трейдеров / С. В. Булашев. – М. : Компания Спутник+, 2003. – 245 с.</mixed-citation><mixed-citation xml:lang="en">Harris M. Using Shared Memory in CUDA C/C++. Available at: https://devblogs.nvidia.com/usingshared-memory-cuda-cc (accessed 26.09.2018).</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Сандерс, Д. Технология CUDA в примерах: введение в программирование графических процессоров : пер. с англ. А. А. Слинкина / Д. Сандерс, Э. Кэндрот. – М. : ДМК Пресс, 2013. – 234 c.</mixed-citation><mixed-citation xml:lang="en">Zalesky B. A., Trotski Ph. S. Parallelnaya versiya detektora ekstremalnyih osobyih tochek [Parallel version of detector of extremal key points]. Informatika [Informatics], 2018, vol. 15, no. 2, pp. 55–63 (in Russian).</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Bulashev S. V. Statistika dlya treyderov. Statistics for traders. Moscow, Kompanija Sputnik+, 2003, 245 p. (in Russian).</mixed-citation><mixed-citation xml:lang="en">Bulashev S. V. Statistika dlya treyderov. Statistics for traders. Moscow, Kompanija Sputnik+, 2003, 245 p. (in Russian).</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Sanders D., Kendrot E. CUDA by Example: An Introduction to General-Purpose GPU Programming. Boston, Addison-Wesley Professional, 2010, 320 p.</mixed-citation><mixed-citation xml:lang="en">Sanders D., Kendrot E. CUDA by Example: An Introduction to General-Purpose GPU Programming. Boston, Addison-Wesley Professional, 2010, 320 p.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
