From 9e1e96011657ba61699dd27d4ee06e544623f0c6 Mon Sep 17 00:00:00 2001 From: Christine Poerschke <6458642+cpoerschke@users.noreply.github.com> Date: Sun, 1 May 2022 19:59:55 +0100 Subject: [PATCH] imgproc: fix two typos (imput, magnutude) --- modules/imgproc/include/opencv2/imgproc/segmentation.hpp | 2 +- modules/imgproc/src/intelligent_scissors.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/imgproc/include/opencv2/imgproc/segmentation.hpp b/modules/imgproc/include/opencv2/imgproc/segmentation.hpp index 26882f444e..c40d5011ee 100644 --- a/modules/imgproc/include/opencv2/imgproc/segmentation.hpp +++ b/modules/imgproc/include/opencv2/imgproc/segmentation.hpp @@ -92,7 +92,7 @@ public: CV_WRAP IntelligentScissorsMB& applyImage(InputArray image); - /** @brief Specify custom features of imput image + /** @brief Specify custom features of input image * * Customized advanced variant of applyImage() call. * diff --git a/modules/imgproc/src/intelligent_scissors.cpp b/modules/imgproc/src/intelligent_scissors.cpp index 38acfd79e3..1b7e3dd163 100644 --- a/modules/imgproc/src/intelligent_scissors.cpp +++ b/modules/imgproc/src/intelligent_scissors.cpp @@ -429,13 +429,13 @@ struct IntelligentScissorsMB::Impl gradient_direction.create(src_size); for (int y = 0; y < src_size.height; y++) { - const float* magnutude_row = image_magnitude_.ptr(y); + const float* magnitude_row = image_magnitude_.ptr(y); const float* Ix_row = Ix_.ptr(y); const float* Iy_row = Iy_.ptr(y); Point2f* gradient_direction_row = gradient_direction.ptr(y); for (int x = 0; x < src_size.width; x++) { - const float m = magnutude_row[x]; + const float m = magnitude_row[x]; if (m > FLT_EPSILON) { float m_inv = 1.0f / m;