Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
b5e1eb7d
Commit
b5e1eb7d
authored
Sep 04, 2013
by
Daniel Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed IOArray constness.
parent
24e91605
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
feature_detection.rst
modules/imgproc/doc/feature_detection.rst
+2
-2
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+2
-2
lsd.cpp
modules/imgproc/src/lsd.cpp
+6
-6
No files found.
modules/imgproc/doc/feature_detection.rst
View file @
b5e1eb7d
...
...
@@ -579,7 +579,7 @@ LineSegmentDetector::drawSegments
---------------------------------
Draws the line segments on a given image.
.. ocv:function:: void LineSegmentDetector::drawSegments(InputOutputArray _image,
const
InputArray lines)
.. ocv:function:: void LineSegmentDetector::drawSegments(InputOutputArray _image, InputArray lines)
:param image: The image, where the liens will be drawn. Should be bigger or equal to the image, where the lines were found.
...
...
@@ -590,7 +590,7 @@ LineSegmentDetector::compareSegments
------------------------------------
Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.
.. ocv:function:: int LineSegmentDetector::compareSegments(const Size& size,
const InputArray lines1, const
InputArray lines2, InputOutputArray _image = noArray())
.. ocv:function:: int LineSegmentDetector::compareSegments(const Size& size,
InputArray lines1,
InputArray lines2, InputOutputArray _image = noArray())
:param size: The size of the image, where lines1 and lines2 were found.
...
...
modules/imgproc/include/opencv2/imgproc.hpp
View file @
b5e1eb7d
...
...
@@ -933,7 +933,7 @@ public:
* Should have the size of the image, where the lines were found
* @param lines The lines that need to be drawn
*/
virtual
void
drawSegments
(
InputOutputArray
_image
,
const
InputArray
lines
)
=
0
;
virtual
void
drawSegments
(
InputOutputArray
_image
,
InputArray
lines
)
=
0
;
/**
* Draw both vectors on the image canvas. Uses blue for lines 1 and red for lines 2.
...
...
@@ -945,7 +945,7 @@ public:
* Should have the size of the image, where the lines were found
* @return The number of mismatching pixels between lines1 and lines2.
*/
virtual
int
compareSegments
(
const
Size
&
size
,
const
InputArray
lines1
,
const
InputArray
lines2
,
InputOutputArray
_image
=
noArray
())
=
0
;
virtual
int
compareSegments
(
const
Size
&
size
,
InputArray
lines1
,
InputArray
lines2
,
InputOutputArray
_image
=
noArray
())
=
0
;
virtual
~
LineSegmentDetector
()
{};
};
...
...
modules/imgproc/src/lsd.cpp
View file @
b5e1eb7d
...
...
@@ -214,7 +214,7 @@ public:
* Should have the size of the image, where the lines were found
* @param lines The lines that need to be drawn
*/
void
drawSegments
(
InputOutputArray
_image
,
const
InputArray
lines
);
void
drawSegments
(
InputOutputArray
_image
,
InputArray
lines
);
/**
* Draw both vectors on the image canvas. Uses blue for lines 1 and red for lines 2.
...
...
@@ -226,7 +226,7 @@ public:
* Should have the size of the image, where the lines were found
* @return The number of mismatching pixels between lines1 and lines2.
*/
int
compareSegments
(
const
Size
&
size
,
const
InputArray
lines1
,
const
InputArray
lines2
,
InputOutputArray
_image
=
noArray
());
int
compareSegments
(
const
Size
&
size
,
InputArray
lines1
,
InputArray
lines2
,
InputOutputArray
_image
=
noArray
());
private
:
Mat
image
;
...
...
@@ -335,7 +335,7 @@ private:
* @param rec Return: The generated rectangle.
*/
void
region2rect
(
const
std
::
vector
<
RegionPoint
>&
reg
,
const
int
reg_size
,
const
double
reg_angle
,
const
double
prec
,
const
double
p
,
rect
&
rec
)
const
;
const
double
prec
,
const
double
p
,
rect
&
rec
)
const
;
/**
* Compute region's angle as the principal inertia axis of the region.
...
...
@@ -409,7 +409,7 @@ LineSegmentDetectorImpl::LineSegmentDetectorImpl(int _refine, double _scale, dou
_n_bins
>
0
);
}
void
LineSegmentDetectorImpl
::
detect
(
const
InputArray
_image
,
OutputArray
_lines
,
void
LineSegmentDetectorImpl
::
detect
(
InputArray
_image
,
OutputArray
_lines
,
OutputArray
_width
,
OutputArray
_prec
,
OutputArray
_nfa
)
{
Mat_
<
double
>
img
=
_image
.
getMat
();
...
...
@@ -1149,7 +1149,7 @@ inline bool LineSegmentDetectorImpl::isAligned(const int& address, const double&
}
void
LineSegmentDetectorImpl
::
drawSegments
(
InputOutputArray
_image
,
const
InputArray
lines
)
void
LineSegmentDetectorImpl
::
drawSegments
(
InputOutputArray
_image
,
InputArray
lines
)
{
CV_Assert
(
!
_image
.
empty
()
&&
(
_image
.
channels
()
==
1
||
_image
.
channels
()
==
3
));
...
...
@@ -1185,7 +1185,7 @@ void LineSegmentDetectorImpl::drawSegments(InputOutputArray _image, const InputA
}
int
LineSegmentDetectorImpl
::
compareSegments
(
const
Size
&
size
,
const
InputArray
lines1
,
const
InputArray
lines2
,
InputOutputArray
_image
)
int
LineSegmentDetectorImpl
::
compareSegments
(
const
Size
&
size
,
InputArray
lines1
,
InputArray
lines2
,
InputOutputArray
_image
)
{
Size
sz
=
size
;
if
(
_image
.
needed
()
&&
_image
.
size
()
!=
size
)
sz
=
_image
.
size
();
...
...
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