Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
d19f2ba6
Commit
d19f2ba6
authored
Aug 02, 2014
by
biagio montesano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed warnings from LSDDetector
parent
1f33b20b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
LSDDetector.cpp
modules/line_descriptor/src/LSDDetector.cpp
+5
-13
No files found.
modules/line_descriptor/src/LSDDetector.cpp
View file @
d19f2ba6
...
...
@@ -101,10 +101,7 @@ inline void checkLineExtremes( cv::Vec4i& extremes, cv::Size imageSize )
void
LSDDetector
::
detect
(
const
Mat
&
image
,
CV_OUT
std
::
vector
<
KeyLine
>&
keylines
,
int
scale
,
int
numOctaves
,
const
Mat
&
mask
)
{
if
(
mask
.
data
!=
NULL
&&
(
mask
.
size
()
!=
image
.
size
()
||
mask
.
type
()
!=
CV_8UC1
)
)
{
std
::
cout
<<
"Mask error while detecting lines: "
<<
"please check its dimensions and that data type is CV_8UC1"
<<
std
::
endl
;
CV_Assert
(
false
);
}
throw
std
::
runtime_error
(
"Mask error while detecting lines: please check its dimensions and that data type is CV_8UC1"
);
else
detectImpl
(
image
,
keylines
,
numOctaves
,
scale
,
mask
);
...
...
@@ -118,12 +115,10 @@ void LSDDetector::detect( const std::vector<Mat>& images, std::vector<std::vecto
for
(
size_t
counter
=
0
;
counter
<
images
.
size
();
counter
++
)
{
if
(
masks
[
counter
].
data
!=
NULL
&&
(
masks
[
counter
].
size
()
!=
images
[
counter
].
size
()
||
masks
[
counter
].
type
()
!=
CV_8UC1
)
)
{
std
::
cout
<<
"Masks error while detecting lines: "
<<
"please check their dimensions and that data types are CV_8UC1"
<<
std
::
endl
;
CV_Assert
(
false
);
}
throw
std
::
runtime_error
(
"Masks error while detecting lines: please check their dimensions and that data types are CV_8UC1"
);
detectImpl
(
images
[
counter
],
keylines
[
counter
],
numOctaves
,
scale
,
masks
[
counter
]
);
else
detectImpl
(
images
[
counter
],
keylines
[
counter
],
numOctaves
,
scale
,
masks
[
counter
]
);
}
}
...
...
@@ -138,10 +133,7 @@ void LSDDetector::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& keyline
/*check whether image depth is different from 0 */
if
(
image
.
depth
()
!=
0
)
{
std
::
cout
<<
"Warning, depth image!= 0"
<<
std
::
endl
;
CV_Assert
(
false
);
}
throw
std
::
runtime_error
(
"Error, depth image!= 0"
);
/* create a pointer to self */
LSDDetector
*
lsd
=
const_cast
<
LSDDetector
*>
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment