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
71c98af0
Commit
71c98af0
authored
Sep 01, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #80 from znah/py_wrap
StructuredEdgeDetection to python
parents
5e70cd85
96efa4cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
structured_edge_detection.hpp
...oc/include/opencv2/ximgproc/structured_edge_detection.hpp
+2
-2
structured_edge_detection.cpp
modules/ximgproc/src/structured_edge_detection.cpp
+5
-5
No files found.
modules/ximgproc/include/opencv2/ximgproc/structured_edge_detection.hpp
View file @
71c98af0
...
...
@@ -107,7 +107,7 @@ public:
* \param dst : destination image (grayscale, float, in [0;1])
* where edges are drawn
*/
CV_WRAP
virtual
void
detectEdges
(
const
Mat
&
src
,
Mat
&
dst
)
const
=
0
;
CV_WRAP
virtual
void
detectEdges
(
const
Mat
&
src
,
CV_OUT
Mat
&
dst
)
const
=
0
;
};
/*!
...
...
@@ -119,7 +119,7 @@ public:
* own forest, pass NULL otherwise
*/
CV_EXPORTS_W
Ptr
<
StructuredEdgeDetection
>
createStructuredEdgeDetection
(
const
String
&
model
,
const
RFFeatureGetter
*
howToGetFeatures
=
NULL
);
Ptr
<
const
RFFeatureGetter
>
howToGetFeatures
=
Ptr
<
RFFeatureGetter
>
()
);
}
}
...
...
modules/ximgproc/src/structured_edge_detection.cpp
View file @
71c98af0
...
...
@@ -339,11 +339,11 @@ public:
* \param filename : name of the file where the model is stored
*/
StructuredEdgeDetectionImpl
(
const
cv
::
String
&
filename
,
const
RFFeatureGetter
*
_howToGetFeatures
)
Ptr
<
const
RFFeatureGetter
>
_howToGetFeatures
)
:
name
(
"StructuredEdgeDetection"
),
howToGetFeatures
(
_howToGetFeatures
!=
NULL
howToGetFeatures
(
(
!
_howToGetFeatures
.
empty
())
?
_howToGetFeatures
:
createRFFeatureGetter
()
)
:
createRFFeatureGetter
()
.
staticCast
<
const
RFFeatureGetter
>
()
)
{
cv
::
FileStorage
modelFile
(
filename
,
FileStorage
::
READ
);
CV_Assert
(
modelFile
.
isOpened
()
);
...
...
@@ -631,7 +631,7 @@ protected:
String
name
;
/*! optional feature getter (getFeatures method) */
const
RFFeatureGetter
*
howToGetFeatures
;
Ptr
<
const
RFFeatureGetter
>
howToGetFeatures
;
/*! random forest used to detect edges */
struct
RandomForest
...
...
@@ -684,7 +684,7 @@ protected:
};
Ptr
<
StructuredEdgeDetection
>
createStructuredEdgeDetection
(
const
String
&
model
,
const
RFFeatureGetter
*
howToGetFeatures
)
Ptr
<
const
RFFeatureGetter
>
howToGetFeatures
)
{
return
makePtr
<
StructuredEdgeDetectionImpl
>
(
model
,
howToGetFeatures
);
}
...
...
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