mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
Merge pull request #21941 from cpoerschke:4.x-fix-imgproc-typos
This commit is contained in:
commit
11f36bdf9a
@ -92,7 +92,7 @@ public:
|
|||||||
CV_WRAP
|
CV_WRAP
|
||||||
IntelligentScissorsMB& applyImage(InputArray image);
|
IntelligentScissorsMB& applyImage(InputArray image);
|
||||||
|
|
||||||
/** @brief Specify custom features of imput image
|
/** @brief Specify custom features of input image
|
||||||
*
|
*
|
||||||
* Customized advanced variant of applyImage() call.
|
* Customized advanced variant of applyImage() call.
|
||||||
*
|
*
|
||||||
|
@ -429,13 +429,13 @@ struct IntelligentScissorsMB::Impl
|
|||||||
gradient_direction.create(src_size);
|
gradient_direction.create(src_size);
|
||||||
for (int y = 0; y < src_size.height; y++)
|
for (int y = 0; y < src_size.height; y++)
|
||||||
{
|
{
|
||||||
const float* magnutude_row = image_magnitude_.ptr<float>(y);
|
const float* magnitude_row = image_magnitude_.ptr<float>(y);
|
||||||
const float* Ix_row = Ix_.ptr<float>(y);
|
const float* Ix_row = Ix_.ptr<float>(y);
|
||||||
const float* Iy_row = Iy_.ptr<float>(y);
|
const float* Iy_row = Iy_.ptr<float>(y);
|
||||||
Point2f* gradient_direction_row = gradient_direction.ptr<Point2f>(y);
|
Point2f* gradient_direction_row = gradient_direction.ptr<Point2f>(y);
|
||||||
for (int x = 0; x < src_size.width; x++)
|
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)
|
if (m > FLT_EPSILON)
|
||||||
{
|
{
|
||||||
float m_inv = 1.0f / m;
|
float m_inv = 1.0f / m;
|
||||||
|
Loading…
Reference in New Issue
Block a user