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
88930874
Commit
88930874
authored
Oct 14, 2018
by
tompollok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change area() emptiness checks to empty()
parent
b5660357
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
aruco.cpp
modules/aruco/src/aruco.cpp
+1
-1
charuco.cpp
modules/aruco/src/charuco.cpp
+1
-1
omnidir.cpp
modules/ccalib/src/omnidir.cpp
+1
-1
TrackingFunctionPF.hpp
modules/tracking/src/TrackingFunctionPF.hpp
+1
-1
disparity_filters.cpp
modules/ximgproc/src/disparity_filters.cpp
+1
-1
No files found.
modules/aruco/src/aruco.cpp
View file @
88930874
...
...
@@ -1767,7 +1767,7 @@ void drawMarker(const Ptr<Dictionary> &dictionary, int id, int sidePixels, Outpu
void
_drawPlanarBoardImpl
(
Board
*
_board
,
Size
outSize
,
OutputArray
_img
,
int
marginSize
,
int
borderBits
)
{
CV_Assert
(
outSize
.
area
()
>
0
);
CV_Assert
(
!
outSize
.
empty
()
);
CV_Assert
(
marginSize
>=
0
);
_img
.
create
(
outSize
,
CV_8UC1
);
...
...
modules/aruco/src/charuco.cpp
View file @
88930874
...
...
@@ -53,7 +53,7 @@ using namespace std;
*/
void
CharucoBoard
::
draw
(
Size
outSize
,
OutputArray
_img
,
int
marginSize
,
int
borderBits
)
{
CV_Assert
(
outSize
.
area
()
>
0
);
CV_Assert
(
!
outSize
.
empty
()
);
CV_Assert
(
marginSize
>=
0
);
_img
.
create
(
outSize
,
CV_8UC1
);
...
...
modules/ccalib/src/omnidir.cpp
View file @
88930874
...
...
@@ -532,7 +532,7 @@ void cv::omnidir::initUndistortRectifyMap(InputArray K, InputArray D, InputArray
void
cv
::
omnidir
::
undistortImage
(
InputArray
distorted
,
OutputArray
undistorted
,
InputArray
K
,
InputArray
D
,
InputArray
xi
,
int
flags
,
InputArray
Knew
,
const
Size
&
new_size
,
InputArray
R
)
{
Size
size
=
new_size
.
area
()
!=
0
?
new_size
:
distorted
.
size
()
;
Size
size
=
new_size
.
empty
()
?
distorted
.
size
()
:
new_size
;
cv
::
Mat
map1
,
map2
;
omnidir
::
initUndistortRectifyMap
(
K
,
D
,
xi
,
R
,
Knew
,
size
,
CV_16SC2
,
map1
,
map2
,
flags
);
...
...
modules/tracking/src/TrackingFunctionPF.hpp
View file @
88930874
...
...
@@ -66,7 +66,7 @@ namespace cv{
}
double
TrackingFunctionPF
::
calc
(
const
double
*
x
)
const
{
Rect
rect
=
rectFromRow
(
x
);
if
(
rect
.
area
()
==
0
){
if
(
rect
.
empty
()
){
return
2.0
;
}
return
_origHist
.
dist
(
TrackingHistogram
(
_image
(
rect
),
_nh
,
_ns
,
_nv
));
...
...
modules/ximgproc/src/disparity_filters.cpp
View file @
88930874
...
...
@@ -261,7 +261,7 @@ void DisparityWLSFilterImpl::filter_(InputArray disparity_map_left, InputArray l
resize_factor
=
disparity_map_left
.
cols
()
/
(
float
)
left_view
.
cols
();
else
resize_factor
=
1.0
;
if
(
ROI
.
area
()
!=
0
)
/* user provided a ROI */
if
(
!
ROI
.
empty
()
)
/* user provided a ROI */
valid_disp_ROI
=
ROI
;
else
valid_disp_ROI
=
Rect
(
left_offset
,
top_offset
,
...
...
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