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
bb93e3ab
Commit
bb93e3ab
authored
Feb 15, 2012
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added color canny; improved Algorithm class implementation
parent
716a5d04
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
17 deletions
+76
-17
core.hpp
modules/core/include/opencv2/core/core.hpp
+25
-6
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+0
-11
algorithm.cpp
modules/core/src/algorithm.cpp
+51
-0
canny.cpp
modules/imgproc/src/canny.cpp
+0
-0
No files found.
modules/core/include/opencv2/core/core.hpp
View file @
bb93e3ab
...
...
@@ -4288,12 +4288,31 @@ public:
void
read
(
Algorithm
*
algo
,
const
FileNode
&
fn
)
const
;
string
name
()
const
;
template
<
typename
_Tp
>
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
typename
ParamType
<
_Tp
>::
member_type
&
value
,
bool
readOnly
=
false
,
typename
ParamType
<
_Tp
>::
member_type
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
typename
ParamType
<
_Tp
>::
const_param_type
)
=
0
,
const
string
&
help
=
string
());
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
int
&
value
,
bool
readOnly
=
false
,
int
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
int
)
=
0
,
const
string
&
help
=
string
());
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
double
&
value
,
bool
readOnly
=
false
,
double
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
double
)
=
0
,
const
string
&
help
=
string
());
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
string
&
value
,
bool
readOnly
=
false
,
string
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
const
string
&
)
=
0
,
const
string
&
help
=
string
());
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
Mat
&
value
,
bool
readOnly
=
false
,
Mat
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
const
Mat
&
)
=
0
,
const
string
&
help
=
string
());
void
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
Ptr
<
Algorithm
>&
value
,
bool
readOnly
=
false
,
Ptr
<
Algorithm
>
(
Algorithm
::*
getter
)()
=
0
,
void
(
Algorithm
::*
setter
)(
const
Ptr
<
Algorithm
>&
)
=
0
,
const
string
&
help
=
string
());
protected
:
AlgorithmInfoData
*
data
;
};
...
...
modules/core/include/opencv2/core/operations.hpp
View file @
bb93e3ab
...
...
@@ -3833,17 +3833,6 @@ template<typename _Tp> inline void Algorithm::set(const char* name,
info
()
->
set
(
this
,
name
,
ParamType
<
_Tp
>::
type
,
&
value
);
}
template
<
typename
_Tp
>
inline
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
typename
ParamType
<
_Tp
>::
member_type
&
value
,
bool
readOnly
,
typename
ParamType
<
_Tp
>::
member_type
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
typename
ParamType
<
_Tp
>::
const_param_type
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
_Tp
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
}
#endif // __cplusplus
...
...
modules/core/src/algorithm.cpp
View file @
bb93e3ab
...
...
@@ -493,6 +493,57 @@ void AlgorithmInfo::addParam_(const Algorithm* algo, const char* name, int argTy
(
int
)((
size_t
)
value
-
(
size_t
)(
void
*
)
algo
),
getter
,
setter
,
help
));
}
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
int
&
value
,
bool
readOnly
,
int
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
int
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
int
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
double
&
value
,
bool
readOnly
,
double
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
double
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
double
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
string
&
value
,
bool
readOnly
,
string
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
const
string
&
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
string
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
Mat
&
value
,
bool
readOnly
,
Mat
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
const
Mat
&
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
Mat
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
void
AlgorithmInfo
::
addParam
(
const
Algorithm
*
algo
,
const
char
*
name
,
const
Ptr
<
Algorithm
>&
value
,
bool
readOnly
,
Ptr
<
Algorithm
>
(
Algorithm
::*
getter
)(),
void
(
Algorithm
::*
setter
)(
const
Ptr
<
Algorithm
>&
),
const
string
&
help
)
{
addParam_
(
algo
,
name
,
ParamType
<
Algorithm
>::
type
,
&
value
,
readOnly
,
(
Algorithm
::
Getter
)
getter
,
(
Algorithm
::
Setter
)
setter
,
help
);
}
}
...
...
modules/imgproc/src/canny.cpp
View file @
bb93e3ab
This diff is collapsed.
Click to expand it.
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