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
1d01c49a
Commit
1d01c49a
authored
Dec 06, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Dec 06, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1870 from es0m:es0m-2.4-imgproc-samplers
parents
72cfff4c
3b4f65b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
samplers.cpp
modules/imgproc/src/samplers.cpp
+8
-8
No files found.
modules/imgproc/src/samplers.cpp
View file @
1d01c49a
...
...
@@ -97,7 +97,7 @@ icvAdjustRect( const void* srcptr, int src_step, int pix_size,
rect
.
x
=
win_size
.
width
;
}
if
(
ip
.
x
+
win_size
.
width
<
src
_size
.
width
)
if
(
ip
.
x
<
src_size
.
width
-
win
_size
.
width
)
rect
.
width
=
win_size
.
width
;
else
{
...
...
@@ -118,7 +118,7 @@ icvAdjustRect( const void* srcptr, int src_step, int pix_size,
else
rect
.
y
=
-
ip
.
y
;
if
(
ip
.
y
+
win_size
.
height
<
src
_size
.
height
)
if
(
ip
.
y
<
src_size
.
height
-
win
_size
.
height
)
rect
.
height
=
win_size
.
height
;
else
{
...
...
@@ -164,8 +164,8 @@ CvStatus CV_STDCALL icvGetRectSubPix_##flavor##_C1R \
src_step /= sizeof(src[0]); \
dst_step /= sizeof(dst[0]); \
\
if( 0 <= ip.x && ip.x
+ win_size.width < src
_size.width && \
0 <= ip.y && ip.y
+ win_size.height < src
_size.height ) \
if( 0 <= ip.x && ip.x
< src_size.width - win
_size.width && \
0 <= ip.y && ip.y
< src_size.height - win
_size.height ) \
{ \
/* extracted rectangle is totally inside the image */
\
src += ip.y * src_step + ip.x; \
...
...
@@ -270,8 +270,8 @@ static CvStatus CV_STDCALL icvGetRectSubPix_##flavor##_C3R \
src_step /= sizeof( src[0] ); \
dst_step /= sizeof( dst[0] ); \
\
if( 0 <= ip.x && ip.x
+ win_size.width < src
_size.width && \
0 <= ip.y && ip.y
+ win_size.height < src
_size.height ) \
if( 0 <= ip.x && ip.x
< src_size.width - win
_size.width && \
0 <= ip.y && ip.y
< src_size.height - win
_size.height ) \
{ \
/* extracted rectangle is totally inside the image */
\
src += ip.y * src_step + ip.x*3; \
...
...
@@ -407,8 +407,8 @@ CvStatus CV_STDCALL icvGetRectSubPix_8u32f_C1R
src_step
/=
sizeof
(
src
[
0
]);
dst_step
/=
sizeof
(
dst
[
0
]);
if
(
0
<=
ip
.
x
&&
ip
.
x
+
win_size
.
width
<
src
_size
.
width
&&
0
<=
ip
.
y
&&
ip
.
y
+
win_size
.
height
<
src
_size
.
height
)
if
(
0
<=
ip
.
x
&&
ip
.
x
<
src_size
.
width
-
win
_size
.
width
&&
0
<=
ip
.
y
&&
ip
.
y
<
src_size
.
height
-
win
_size
.
height
)
{
// extracted rectangle is totally inside the image
src
+=
ip
.
y
*
src_step
+
ip
.
x
;
...
...
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