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
3d5c0f1f
Commit
3d5c0f1f
authored
Aug 31, 2016
by
Maksim Shabunin
Committed by
mshabunin
Sep 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HAL interface for cv::integral
parent
69704692
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
hal.hpp
modules/imgproc/include/opencv2/imgproc/hal/hal.hpp
+7
-0
hal_replacement.hpp
modules/imgproc/src/hal_replacement.hpp
+32
-0
precomp.hpp
modules/imgproc/src/precomp.hpp
+1
-0
sumpixels.cpp
modules/imgproc/src/sumpixels.cpp
+0
-0
No files found.
modules/imgproc/include/opencv2/imgproc/hal/hal.hpp
View file @
3d5c0f1f
...
@@ -175,6 +175,13 @@ CV_EXPORTS void cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_step,
...
@@ -175,6 +175,13 @@ CV_EXPORTS void cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_step,
uchar
*
dst_data
,
size_t
dst_step
,
uchar
*
dst_data
,
size_t
dst_step
,
int
width
,
int
height
);
int
width
,
int
height
);
CV_EXPORTS
void
integral
(
int
depth
,
int
sdepth
,
int
sqdepth
,
const
uchar
*
src
,
size_t
srcstep
,
uchar
*
sum
,
size_t
sumstep
,
uchar
*
sqsum
,
size_t
sqsumstep
,
uchar
*
tilted
,
size_t
tstep
,
int
width
,
int
height
,
int
cn
);
//! @}
//! @}
}}
}}
...
...
modules/imgproc/src/hal_replacement.hpp
View file @
3d5c0f1f
...
@@ -583,6 +583,38 @@ inline int hal_ni_cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_ste
...
@@ -583,6 +583,38 @@ inline int hal_ni_cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_ste
#define cv_hal_cvtMultipliedRGBAtoRGBA hal_ni_cvtMultipliedRGBAtoRGBA
#define cv_hal_cvtMultipliedRGBAtoRGBA hal_ni_cvtMultipliedRGBAtoRGBA
//! @endcond
//! @endcond
/**
@brief Calculate integral image
@param depth,sdepth,sqdepth Depths of source image, sum image and square sum image
@param src_data,src_step Source image
@param sum_data,sum_step Sum image
@param sqsum_data,sqsum_step Square sum image
@param tilted_data,tilted_step Tilted sum image
@param width,height Source image dimensions
@param cn Number of channels
@note Following combinations of image depths are used:
Source | Sum | Square sum
-------|-----|-----------
CV_8U | CV_32S | CV_64F
CV_8U | CV_32S | CV_32F
CV_8U | CV_32S | CV_32S
CV_8U | CV_32F | CV_64F
CV_8U | CV_32F | CV_32F
CV_8U | CV_64F | CV_64F
CV_16U | CV_64F | CV_64F
CV_16S | CV_64F | CV_64F
CV_32F | CV_32F | CV_64F
CV_32F | CV_32F | CV_32F
CV_32F | CV_64F | CV_64F
CV_64F | CV_64F | CV_64F
@sa cv::integral
*/
inline
int
hal_ni_integral
(
int
depth
,
int
sdepth
,
int
sqdepth
,
const
uchar
*
src_data
,
size_t
src_step
,
uchar
*
sum_data
,
size_t
sum_step
,
uchar
*
sqsum_data
,
size_t
sqsum_step
,
uchar
*
tilted_data
,
size_t
tilted_step
,
int
width
,
int
height
,
int
cn
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
//! @cond IGNORED
#define cv_hal_integral hal_ni_integral
//! @endcond
//! @}
//! @}
#if defined __GNUC__
#if defined __GNUC__
...
...
modules/imgproc/src/precomp.hpp
View file @
3d5c0f1f
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
#include "opencv2/core/ocl.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencv2/core/hal/hal.hpp"
#include "opencv2/core/hal/hal.hpp"
#include "opencv2/imgproc/hal/hal.hpp"
#include "opencv2/imgproc/hal/hal.hpp"
#include "hal_replacement.hpp"
#include <math.h>
#include <math.h>
#include <assert.h>
#include <assert.h>
...
...
modules/imgproc/src/sumpixels.cpp
View file @
3d5c0f1f
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