From 83c7dfb6a46fd7568b34c722fab503d1dc24ebeb Mon Sep 17 00:00:00 2001 From: Namgoo Lee Date: Wed, 5 Dec 2018 11:22:23 +0900 Subject: [PATCH] Fix error in LineIterator example code in doc --- modules/imgproc/include/opencv2/imgproc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index d60343a720..14a63f3671 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -4819,7 +4819,7 @@ LineIterator it2 = it; vector buf(it.count); for(int i = 0; i < it.count; i++, ++it) - buf[i] = *(const Vec3b)*it; + buf[i] = *(const Vec3b*)*it; // alternative way of iterating through the line for(int i = 0; i < it2.count; i++, ++it2)