Apollo
6.0
Open source self driving car software
modules
perception
camera
lib
obstacle
tracker
common
similar.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright 2018 The Apollo Authors. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the License);
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an AS IS BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*****************************************************************************/
16
#pragma once
17
18
#include "
modules/perception/camera/common/camera_frame.h
"
19
20
namespace
apollo
{
21
namespace
perception {
22
namespace
camera {
23
24
class
BaseSimilar
{
25
public
:
26
virtual
bool
Calc
(
CameraFrame
*frame1,
CameraFrame
*frame2,
27
base::Blob<float>
*sim) = 0;
28
};
29
30
class
CosineSimilar
:
public
BaseSimilar
{
31
public
:
32
CosineSimilar
() =
default
;
33
34
bool
Calc
(
CameraFrame
*frame1,
CameraFrame
*frame2,
35
base::Blob<float>
*sim)
override
;
36
};
37
38
class
GPUSimilar
:
public
BaseSimilar
{
39
public
:
40
bool
Calc
(
CameraFrame
*frame1,
CameraFrame
*frame2,
41
base::Blob<float>
*sim)
override
;
42
};
43
}
// namespace camera
44
}
// namespace perception
45
}
// namespace apollo
apollo::perception::camera::CosineSimilar
Definition:
similar.h:30
apollo::perception::camera::CameraFrame
Definition:
camera_frame.h:33
apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition:
atomic_hash_map.h:25
apollo::perception::camera::GPUSimilar
Definition:
similar.h:38
apollo::perception::camera::BaseSimilar::Calc
virtual bool Calc(CameraFrame *frame1, CameraFrame *frame2, base::Blob< float > *sim)=0
apollo::perception::base::Blob< float >
camera_frame.h
apollo::perception::camera::BaseSimilar
Definition:
similar.h:24
Generated by
1.8.13