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
f97e38d8
Commit
f97e38d8
authored
Apr 28, 2014
by
Ievgen Khvedchenia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix casting from/to int/float that caused lot of compiler warnings.
parent
61f79c26
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
40 deletions
+37
-40
akaze.cpp
modules/features2d/src/akaze.cpp
+2
-2
AKAZE.cpp
modules/features2d/src/akaze/AKAZE.cpp
+0
-0
AKAZE.h
modules/features2d/src/akaze/AKAZE.h
+6
-9
KAZE.cpp
modules/features2d/src/kaze/KAZE.cpp
+0
-0
KAZE.h
modules/features2d/src/kaze/KAZE.h
+28
-28
config.h
modules/features2d/src/kaze/config.h
+1
-1
No files found.
modules/features2d/src/akaze.cpp
View file @
f97e38d8
...
...
@@ -30,12 +30,12 @@ namespace cv
if
(
descriptor_size
==
0
)
{
int
t
=
(
6
+
36
+
120
)
*
descriptor_channels
;
return
ceil
(
t
/
8.
);
return
(
int
)
ceil
(
t
/
8.
);
}
else
{
// We use the random bit selection length binary descriptor
return
ceil
(
descriptor_size
/
8.
);
return
(
int
)
ceil
(
descriptor_size
/
8.
);
}
}
}
...
...
modules/features2d/src/akaze/AKAZE.cpp
View file @
f97e38d8
This diff is collapsed.
Click to expand it.
modules/features2d/src/akaze/AKAZE.h
View file @
f97e38d8
...
...
@@ -33,9 +33,6 @@ private:
cv
::
Mat
descriptorBits_
;
cv
::
Mat
bitMask_
;
/// Computation times variables in ms
AKAZETiming
timing_
;
public
:
/// Constructor with input arguments
...
...
@@ -74,14 +71,14 @@ public:
//void Get_MLDB_Descriptor_Subset(const cv::KeyPoint& kpt, unsigned char* desc);
// Methods for saving some results and showing computation times
void
Save_Scale_Space
();
void
Save_Detector_Responses
();
void
Show_Computation_Times
()
const
;
//
void Save_Scale_Space();
//
void Save_Detector_Responses();
//
void Show_Computation_Times() const;
/// Return the computation times
AKAZETiming
Get_Computation_Times
()
const
{
return
timing_
;
}
//
AKAZETiming Get_Computation_Times() const {
//
return timing_;
//
}
};
/* ************************************************************************* */
...
...
modules/features2d/src/kaze/KAZE.cpp
View file @
f97e38d8
This diff is collapsed.
Click to expand it.
modules/features2d/src/kaze/KAZE.h
View file @
f97e38d8
...
...
@@ -54,13 +54,13 @@ private:
std
::
vector
<
int
>
nsteps_
;
// Vector of number of steps per cycle
// Computation times variables in ms
double
tkcontrast_
;
// Kcontrast factor computation
double
tnlscale_
;
// Nonlinear Scale space generation
double
tdetector_
;
// Feature detector
double
tmderivatives_
;
// Multiscale derivatives computation
double
tdresponse_
;
// Detector response computation
double
tdescriptor_
;
// Feature descriptor
double
tsubpixel_
;
// Subpixel refinement
//
double tkcontrast_; // Kcontrast factor computation
//
double tnlscale_; // Nonlinear Scale space generation
//
double tdetector_; // Feature detector
//
double tmderivatives_; // Multiscale derivatives computation
//
double tdresponse_; // Detector response computation
//
double tdescriptor_; // Feature descriptor
//
double tsubpixel_; // Subpixel refinement
// Some auxiliary variables used in the AOS step
cv
::
Mat
Ltx_
,
Lty_
,
px_
,
py_
,
ax_
,
ay_
,
bx_
,
by_
,
qr_
,
qc_
;
...
...
@@ -243,33 +243,33 @@ public:
return
use_extended_
;
}
float
Get_Time_KContrast
(
void
)
{
return
tkcontrast_
;
}
//
float Get_Time_KContrast(void) {
//
return tkcontrast_;
//
}
float
Get_Time_NLScale
(
void
)
{
return
tnlscale_
;
}
//
float Get_Time_NLScale(void) {
//
return tnlscale_;
//
}
float
Get_Time_Detector
(
void
)
{
return
tdetector_
;
}
//
float Get_Time_Detector(void) {
//
return tdetector_;
//
}
float
Get_Time_Multiscale_Derivatives
(
void
)
{
return
tmderivatives_
;
}
//
float Get_Time_Multiscale_Derivatives(void) {
//
return tmderivatives_;
//
}
float
Get_Time_Detector_Response
(
void
)
{
return
tdresponse_
;
}
//
float Get_Time_Detector_Response(void) {
//
return tdresponse_;
//
}
float
Get_Time_Descriptor
(
void
)
{
return
tdescriptor_
;
}
//
float Get_Time_Descriptor(void) {
//
return tdescriptor_;
//
}
float
Get_Time_Subpixel
(
void
)
{
return
tsubpixel_
;
}
//
float Get_Time_Subpixel(void) {
//
return tsubpixel_;
//
}
};
//*************************************************************************************
...
...
modules/features2d/src/kaze/config.h
View file @
f97e38d8
...
...
@@ -63,7 +63,7 @@ struct KAZEOptions {
KAZEOptions
()
{
// Load the default options
soffset
=
DEFAULT_SCALE_OFFSET
;
omax
=
DEFAULT_OCTAVE_MAX
;
omax
=
static_cast
<
int
>
(
DEFAULT_OCTAVE_MAX
)
;
nsublevels
=
DEFAULT_NSUBLEVELS
;
dthreshold
=
DEFAULT_DETECTOR_THRESHOLD
;
use_fed
=
DEFAULT_USE_FED
;
...
...
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