feat(depth/points process): add member calib_infos_

This commit is contained in:
TinyOh 2019-01-09 17:38:02 +08:00
parent 505490697f
commit dc10d73c96
4 changed files with 7 additions and 2 deletions

View File

@ -24,7 +24,8 @@ const char DepthProcessor::NAME[] = "DepthProcessor";
DepthProcessor::DepthProcessor(
std::shared_ptr<struct camera_calib_info_pair> calib_infos,
std::int32_t proc_period)
: Processor(std::move(proc_period)) {
: Processor(std::move(proc_period)),
calib_infos_(calib_infos) {
VLOG(2) << __func__ << ": proc_period=" << proc_period;
}

View File

@ -37,6 +37,8 @@ class DepthProcessor : public Processor {
Object *OnCreateOutput() override;
bool OnProcess(
Object *const in, Object *const out, Processor *const parent) override;
private:
std::shared_ptr<struct camera_calib_info_pair> calib_infos_;
};
MYNTEYE_END_NAMESPACE

View File

@ -55,7 +55,8 @@ const char PointsProcessor::NAME[] = "PointsProcessor";
PointsProcessor::PointsProcessor(
std::shared_ptr<struct camera_calib_info_pair> calib_infos,
std::int32_t proc_period)
: Processor(std::move(proc_period)) {
: Processor(std::move(proc_period)),
calib_infos_(calib_infos) {
VLOG(2) << __func__ << ": proc_period=" << proc_period;
}

View File

@ -41,6 +41,7 @@ class PointsProcessor : public Processor {
Object *const in, Object *const out, Processor *const parent) override;
private:
std::shared_ptr<struct camera_calib_info_pair> calib_infos_;
};
MYNTEYE_END_NAMESPACE