Apollo 10.0
自动驾驶开放平台
tracking_feat_extractor.h
浏览该文件的文档.
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 <memory>
19#include <string>
20#include <vector>
21
22#include "modules/perception/camera_tracking/proto/tracking_feature.pb.h"
23
31
32namespace apollo {
33namespace perception {
34namespace camera {
35
37 std::shared_ptr<inference::Layer<float>> pooling_layer;
38 std::shared_ptr<base::Blob<float>> rois_blob;
39 std::shared_ptr<base::Blob<float>> top_blob;
40};
41
43 public:
46
54 bool Init(const FeatureExtractorInitOptions &init_options) override;
63 bool Extract(const FeatureExtractorOptions &options,
64 CameraTrackingFrame *frame) override;
65
66 protected:
68 std::vector<std::shared_ptr<FeatureExtractorLayer>> roi_poolings_;
71 int input_width_ = 0;
72 int feat_width_ = 0;
73 int feat_height_ = 0;
74};
75
76} // namespace camera
77} // namespace perception
78} // namespace apollo
bool Extract(const FeatureExtractorOptions &options, CameraTrackingFrame *frame) override
extract feature from frame
void init_roipooling(const tracking_feature::ROIPoolingParam &param)
std::vector< std::shared_ptr< FeatureExtractorLayer > > roi_poolings_
bool Init(const FeatureExtractorInitOptions &init_options) override
init feature extractor
class register implement
Definition arena_queue.h:37
std::shared_ptr< base::Blob< float > > rois_blob
std::shared_ptr< base::Blob< float > > top_blob
std::shared_ptr< inference::Layer< float > > pooling_layer