Skip to content

Commit 25bc17e

Browse files
authored
Update fast_line_detector.cpp
1 parent c97199d commit 25bc17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/fast_line_detector.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void FastLineDetectorImpl::drawSegments(InputOutputArray image, InputArray lines
118118
else
119119
{
120120
cvtColor(image, image, COLOR_BGRA2GRAY);
121-
cvtColor(image, image, cn = 3 ? COLOR_GRAY2BGR : COLOR_GRAY2BGRA);
121+
cvtColor(image, image, cn == 3 ? COLOR_GRAY2BGR : COLOR_GRAY2BGRA);
122122
}
123123

124124
double gap = 10.0;

0 commit comments

Comments
 (0)