Skip to content

Commit 0cf2085

Browse files
committed
Merge pull request #2741 from alalek:imgproc_drop_lsd
2 parents 68d5d32 + 29eb2ef commit 0cf2085

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/line_descriptor/src/LSDDetector.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ void LSDDetector::detect( const Mat& image, CV_OUT std::vector<KeyLine>& keyline
119119
void LSDDetector::detect( const std::vector<Mat>& images, std::vector<std::vector<KeyLine> >& keylines, int scale, int numOctaves,
120120
const std::vector<Mat>& masks ) const
121121
{
122+
#if 1
123+
CV_UNUSED(images); CV_UNUSED(keylines); CV_UNUSED(scale); CV_UNUSED(numOctaves); CV_UNUSED(masks);
124+
CV_Error(Error::StsNotImplemented, "Implementation has been disabled due to createLineSegmentDetector() removal");
125+
#else
122126
/* detect lines from each image */
123127
for ( size_t counter = 0; counter < images.size(); counter++ )
124128
{
@@ -128,11 +132,16 @@ void LSDDetector::detect( const std::vector<Mat>& images, std::vector<std::vecto
128132
else
129133
detectImpl( images[counter], keylines[counter], numOctaves, scale, masks[counter] );
130134
}
135+
#endif
131136
}
132137

133138
/* implementation of line detection */
134139
void LSDDetector::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& keylines, int numOctaves, int scale, const Mat& mask ) const
135140
{
141+
#if 1
142+
CV_UNUSED(imageSrc); CV_UNUSED(keylines); CV_UNUSED(numOctaves); CV_UNUSED(scale); CV_UNUSED(mask);
143+
CV_Error(Error::StsNotImplemented, "Implementation has been disabled due to createLineSegmentDetector() removal");
144+
#else
136145
cv::Mat image;
137146
if( imageSrc.channels() != 1 )
138147
cvtColor( imageSrc, image, COLOR_BGR2GRAY );
@@ -218,7 +227,7 @@ void LSDDetector::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& keyline
218227
}
219228
}
220229
}
221-
230+
#endif
222231
}
223232
}
224233
}

0 commit comments

Comments
 (0)