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
f3f0e06c
Commit
f3f0e06c
authored
Apr 28, 2014
by
Ievgen Khvedchenia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parenthesis in assert statements
parent
0e243541
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
akaze.cpp
modules/features2d/src/akaze.cpp
+6
-2
kaze.cpp
modules/features2d/src/kaze.cpp
+5
-4
No files found.
modules/features2d/src/akaze.cpp
View file @
f3f0e06c
...
...
@@ -99,6 +99,9 @@ namespace cv
}
impl
.
Compute_Descriptors
(
keypoints
,
desc
);
CV_Assert
((
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
())
&&
"Descriptor size does not match expected"
);
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
()))
&&
"Descriptor type does not match expected"
);
}
void
AKAZE
::
detectImpl
(
InputArray
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
InputArray
mask
)
const
...
...
@@ -143,7 +146,7 @@ namespace cv
impl
.
Create_Nonlinear_Scale_Space
(
img1_32
);
impl
.
Compute_Descriptors
(
keypoints
,
desc
);
CV_Assert
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()
&&
"Descriptor size does not match expected"
);
CV_Assert
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
(
))
&&
"Descriptor type does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
())
&&
"Descriptor size does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
()
))
&&
"Descriptor type does not match expected"
);
}
}
\ No newline at end of file
modules/features2d/src/kaze.cpp
View file @
f3f0e06c
...
...
@@ -70,8 +70,8 @@ namespace cv
impl
.
Feature_Description
(
keypoints
,
desc
);
CV_Assert
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()
&&
"Descriptor size does not match expected"
);
CV_Assert
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
(
))
&&
"Descriptor type does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
())
&&
"Descriptor size does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
()
))
&&
"Descriptor type does not match expected"
);
}
void
KAZE
::
detectImpl
(
InputArray
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
InputArray
mask
)
const
...
...
@@ -118,7 +118,7 @@ namespace cv
impl
.
Create_Nonlinear_Scale_Space
(
img1_32
);
impl
.
Feature_Description
(
keypoints
,
desc
);
CV_Assert
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()
&&
"Descriptor size does not match expected"
);
CV_Assert
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
(
))
&&
"Descriptor type does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
())
&&
"Descriptor size does not match expected"
);
CV_Assert
(
(
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
()
))
&&
"Descriptor type does not match expected"
);
}
}
\ No newline at end of file
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