Skip to content

Commit e9794cc

Browse files
authored
Update edge_drawing.cpp
1 parent dd085c0 commit e9794cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ximgproc/src/edge_drawing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,12 @@ void EdgeDrawingImpl::ComputeGradient()
449449
{
450450
for (int j = 0; j < width; j++)
451451
{
452-
gradImg[j] = gradImg[(height - 1) * width + j] = (short)gradThresh - 1;
452+
gradImg[j] = gradImg[(height - 1) * width + j] = (ushort)gradThresh - 1;
453453
}
454454

455455
for (int i = 1; i < height - 1; i++)
456456
{
457-
gradImg[i * width] = gradImg[(i + 1) * width - 1] = (short)gradThresh - 1;
457+
gradImg[i * width] = gradImg[(i + 1) * width - 1] = (ushort)gradThresh - 1;
458458
}
459459

460460
ComputeGradientBody body;

0 commit comments

Comments
 (0)