Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
61d053e4
Commit
61d053e4
authored
9 years ago
by
Jaime Tarraso
Browse files
Options
Downloads
Patches
Plain Diff
Change vector<float> to cv_Mat in feature descriptor
parent
d93648cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/feature_point_image.h
+5
-4
5 additions, 4 deletions
src/feature_point_image.h
with
5 additions
and
4 deletions
src/feature_point_image.h
+
5
−
4
View file @
61d053e4
...
...
@@ -21,7 +21,8 @@ class FeaturePointImage : public FeatureBase
// Eigen::Vector2s measurement_;
cv
::
KeyPoint
keypoint_
;
std
::
vector
<
float
>
descriptor_
;
cv
::
Mat
descriptor_
;
// std::vector<float> descriptor_;
bool
is_known_
;
public:
...
...
@@ -36,7 +37,7 @@ class FeaturePointImage : public FeatureBase
//_known_or_new: known = true; new = false;
FeaturePointImage
(
const
cv
::
KeyPoint
&
_keypoint
,
const
std
::
vector
<
flo
at
>
&
_descriptor
,
bool
_known_or_new
)
:
const
cv
::
M
at
&
_descriptor
,
bool
_known_or_new
)
:
FeatureBase
(
FEAT_POINT_IMAGE
,
Eigen
::
Vector2s
::
Zero
(),
Eigen
::
Matrix2s
::
Identity
()),
keypoint_
(
_keypoint
),
descriptor_
(
_descriptor
)
...
...
@@ -55,7 +56,7 @@ class FeaturePointImage : public FeatureBase
virtual
cv
::
KeyPoint
&
getKeypoint
();
virtual
std
::
vector
<
flo
at
>
&
getDescriptor
();
virtual
cv
::
M
at
&
getDescriptor
();
virtual
Eigen
::
VectorXs
&
getMeasurement
(){
measurement_
(
0
)
=
WolfScalar
(
keypoint_
.
pt
.
x
);
...
...
@@ -70,7 +71,7 @@ inline cv::KeyPoint& FeaturePointImage::getKeypoint()
return
keypoint_
;
}
inline
std
::
vector
<
flo
at
>
&
FeaturePointImage
::
getDescriptor
()
inline
cv
::
M
at
&
FeaturePointImage
::
getDescriptor
()
{
return
descriptor_
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment