@@ -119,6 +119,10 @@ void LSDDetector::detect( const Mat& image, CV_OUT std::vector<KeyLine>& keyline
119
119
void LSDDetector::detect ( const std::vector<Mat>& images, std::vector<std::vector<KeyLine> >& keylines, int scale, int numOctaves,
120
120
const std::vector<Mat>& masks ) const
121
121
{
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
122
126
/* detect lines from each image */
123
127
for ( size_t counter = 0; counter < images.size(); counter++ )
124
128
{
@@ -128,11 +132,16 @@ void LSDDetector::detect( const std::vector<Mat>& images, std::vector<std::vecto
128
132
else
129
133
detectImpl( images[counter], keylines[counter], numOctaves, scale, masks[counter] );
130
134
}
135
+ #endif
131
136
}
132
137
133
138
/* implementation of line detection */
134
139
void LSDDetector::detectImpl ( const Mat& imageSrc, std::vector<KeyLine>& keylines, int numOctaves, int scale, const Mat& mask ) const
135
140
{
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
136
145
cv::Mat image;
137
146
if( imageSrc.channels() != 1 )
138
147
cvtColor( imageSrc, image, COLOR_BGR2GRAY );
@@ -218,7 +227,7 @@ void LSDDetector::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& keyline
218
227
}
219
228
}
220
229
}
221
-
230
+ # endif
222
231
}
223
232
}
224
233
}
0 commit comments