comparison Core/Images/ImageProcessing.cpp @ 3504:18566f9e1831

unit testing new functions in ImageProcessing
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Aug 2019 14:26:04 +0200
parents 46cf170ba121
children b2d4dd16dae8
comparison
equal deleted inserted replaced
3503:46cf170ba121 3504:18566f9e1831
1905 1905
1906 for (unsigned int y = 0; y < height; y++) 1906 for (unsigned int y = 0; y < height; y++)
1907 { 1907 {
1908 for (unsigned int k = 0; k < vertical.size(); k++) 1908 for (unsigned int k = 0; k < vertical.size(); k++)
1909 { 1909 {
1910 if (y < verticalAnchor) 1910 if (y + k < verticalAnchor)
1911 { 1911 {
1912 rows[k] = reinterpret_cast<const float*>(tmp.GetConstRow(0)); // Use top border 1912 rows[k] = reinterpret_cast<const float*>(tmp.GetConstRow(0)); // Use top border
1913 } 1913 }
1914 else if (y + k >= height + verticalAnchor) 1914 else if (y + k >= height + verticalAnchor)
1915 { 1915 {