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
f0b050fa
Commit
f0b050fa
authored
Sep 19, 2013
by
Alexander Mordvintsev
Committed by
Vadim Pisarevsky
Sep 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exposed LineSegemntDetector to python
parent
4b203f7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+5
-5
cv2.cpp
modules/python/src2/cv2.cpp
+2
-1
No files found.
modules/imgproc/include/opencv2/imgproc.hpp
View file @
f0b050fa
...
@@ -900,7 +900,7 @@ protected:
...
@@ -900,7 +900,7 @@ protected:
Point2f
bottomRight
;
Point2f
bottomRight
;
};
};
class
LineSegmentDetector
:
public
Algorithm
class
CV_EXPORTS_W
LineSegmentDetector
:
public
Algorithm
{
{
public
:
public
:
/**
/**
...
@@ -922,7 +922,7 @@ public:
...
@@ -922,7 +922,7 @@ public:
* * 1 corresponds to 0.1 mean false alarms
* * 1 corresponds to 0.1 mean false alarms
* This vector will be calculated _only_ when the objects type is REFINE_ADV
* This vector will be calculated _only_ when the objects type is REFINE_ADV
*/
*/
virtual
void
detect
(
InputArray
_image
,
OutputArray
_lines
,
CV_WRAP
virtual
void
detect
(
InputArray
_image
,
OutputArray
_lines
,
OutputArray
width
=
noArray
(),
OutputArray
prec
=
noArray
(),
OutputArray
width
=
noArray
(),
OutputArray
prec
=
noArray
(),
OutputArray
nfa
=
noArray
())
=
0
;
OutputArray
nfa
=
noArray
())
=
0
;
...
@@ -933,7 +933,7 @@ public:
...
@@ -933,7 +933,7 @@ public:
* Should have the size of the image, where the lines were found
* Should have the size of the image, where the lines were found
* @param lines The lines that need to be drawn
* @param lines The lines that need to be drawn
*/
*/
virtual
void
drawSegments
(
InputOutputArray
_image
,
InputArray
lines
)
=
0
;
CV_WRAP
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.
* Draw both vectors on the image canvas. Uses blue for lines 1 and red for lines 2.
...
@@ -945,13 +945,13 @@ public:
...
@@ -945,13 +945,13 @@ public:
* Should have the size of the image, where the lines were found
* Should have the size of the image, where the lines were found
* @return The number of mismatching pixels between lines1 and lines2.
* @return The number of mismatching pixels between lines1 and lines2.
*/
*/
virtual
int
compareSegments
(
const
Size
&
size
,
InputArray
lines1
,
InputArray
lines2
,
InputOutputArray
_image
=
noArray
())
=
0
;
CV_WRAP
virtual
int
compareSegments
(
const
Size
&
size
,
InputArray
lines1
,
InputArray
lines2
,
InputOutputArray
_image
=
noArray
())
=
0
;
virtual
~
LineSegmentDetector
()
{};
virtual
~
LineSegmentDetector
()
{};
};
};
//! Returns a pointer to a LineSegmentDetector class.
//! Returns a pointer to a LineSegmentDetector class.
CV_EXPORTS
Ptr
<
LineSegmentDetector
>
createLineSegmentDetectorPtr
(
CV_EXPORTS
_W
Ptr
<
LineSegmentDetector
>
createLineSegmentDetectorPtr
(
int
_refine
=
LSD_REFINE_STD
,
double
_scale
=
0.8
,
int
_refine
=
LSD_REFINE_STD
,
double
_scale
=
0.8
,
double
_sigma_scale
=
0.6
,
double
_quant
=
2.0
,
double
_ang_th
=
22.5
,
double
_sigma_scale
=
0.6
,
double
_quant
=
2.0
,
double
_ang_th
=
22.5
,
double
_log_eps
=
0
,
double
_density_th
=
0.7
,
int
_n_bins
=
1024
);
double
_log_eps
=
0
,
double
_density_th
=
0.7
,
int
_n_bins
=
1024
);
...
...
modules/python/src2/cv2.cpp
View file @
f0b050fa
...
@@ -137,7 +137,8 @@ typedef Ptr<StereoSGBM> Ptr_StereoSGBM;
...
@@ -137,7 +137,8 @@ typedef Ptr<StereoSGBM> Ptr_StereoSGBM;
typedef
Ptr
<
cv
::
softcascade
::
ChannelFeatureBuilder
>
Ptr_ChannelFeatureBuilder
;
typedef
Ptr
<
cv
::
softcascade
::
ChannelFeatureBuilder
>
Ptr_ChannelFeatureBuilder
;
typedef
Ptr
<
CLAHE
>
Ptr_CLAHE
;
typedef
Ptr
<
CLAHE
>
Ptr_CLAHE
;
typedef
Ptr
<
LineSegmentDetector
>
Ptr_LineSegmentDetector
;
typedef
SimpleBlobDetector
::
Params
SimpleBlobDetector_Params
;
typedef
SimpleBlobDetector
::
Params
SimpleBlobDetector_Params
;
typedef
cvflann
::
flann_distance_t
cvflann_flann_distance_t
;
typedef
cvflann
::
flann_distance_t
cvflann_flann_distance_t
;
...
...
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