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
d9556a99
Commit
d9556a99
authored
Apr 10, 2014
by
Alexander Karsakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ippiMinEigenVal_ to cv::cornerMinEigenVal
parent
ced81b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
corner.cpp
modules/imgproc/src/corner.cpp
+47
-0
No files found.
modules/imgproc/src/corner.cpp
View file @
d9556a99
...
...
@@ -460,6 +460,53 @@ void cv::cornerMinEigenVal( InputArray _src, OutputArray _dst, int blockSize, in
Mat
src
=
_src
.
getMat
();
_dst
.
create
(
src
.
size
(),
CV_32FC1
);
Mat
dst
=
_dst
.
getMat
();
#ifdef HAVE_IPP
typedef
IppStatus
(
CV_STDCALL
*
ippiMinEigenValGetBufferSize
)(
IppiSize
,
int
,
int
,
int
*
);
typedef
IppStatus
(
CV_STDCALL
*
ippiMinEigenVal
)(
const
void
*
,
int
,
Ipp32f
*
,
int
,
IppiSize
,
IppiKernelType
,
int
,
int
,
Ipp8u
*
);
Size
srcWholeSize
;
Point
srcOffset
;
src
.
locateROI
(
srcWholeSize
,
srcOffset
);
if
(
borderType
==
BORDER_REPLICATE
&&
srcWholeSize
==
src
.
size
())
{
IppiKernelType
kerType
=
ksize
>
0
?
ippKernelSobel
:
ippKernelScharr
;
IppiSize
srcRoi
=
{
src
.
cols
,
src
.
rows
};
ippiMinEigenValGetBufferSize
getBufferSizeFunc
=
0
;
ippiMinEigenVal
minEigenValFunc
=
0
;
float
multiplier
=
0.
f
;
if
(
src
.
type
()
==
CV_8UC1
)
{
getBufferSizeFunc
=
(
ippiMinEigenValGetBufferSize
)
ippiMinEigenValGetBufferSize_8u32f_C1R
;
minEigenValFunc
=
(
ippiMinEigenVal
)
ippiMinEigenVal_8u32f_C1R
;
multiplier
=
(
float
)
1
/
255
;
}
else
if
(
src
.
type
()
==
CV_32FC1
)
{
getBufferSizeFunc
=
(
ippiMinEigenValGetBufferSize
)
ippiMinEigenValGetBufferSize_32f_C1R
;
minEigenValFunc
=
(
ippiMinEigenVal
)
ippiMinEigenVal_32f_C1R
;
multiplier
=
255.
f
;
}
if
(
getBufferSizeFunc
&&
minEigenValFunc
)
{
int
bufferSize
;
IppStatus
ok
=
getBufferSizeFunc
(
srcRoi
,
ksize
,
blockSize
,
&
bufferSize
);
if
(
ok
>=
0
)
{
Ipp8u
*
buffer
=
ippsMalloc_8u
(
bufferSize
);
ok
=
minEigenValFunc
(
src
.
data
,
src
.
step
,
(
Ipp32f
*
)
dst
.
data
,
(
int
)
dst
.
step
,
srcRoi
,
kerType
,
ksize
,
blockSize
,
buffer
);
ippsFree
(
buffer
);
if
(
ok
>=
0
)
{
dst
*=
multiplier
;
return
;
}
}
}
}
#endif
cornerEigenValsVecs
(
src
,
dst
,
blockSize
,
ksize
,
MINEIGENVAL
,
0
,
borderType
);
}
...
...
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