refactor(calib models): delete new unused things
This commit is contained in:
parent
3978264c50
commit
9474528972
|
@ -41,13 +41,13 @@ Object *DepthProcessor::OnCreateOutput() {
|
|||
bool DepthProcessor::OnProcess(
|
||||
Object *const in, Object *const out, Processor *const parent) {
|
||||
MYNTEYE_UNUSED(parent)
|
||||
const ObjMat *input = Object::Cast<ObjMat>(in);
|
||||
ObjMat *output = Object::Cast<ObjMat>(out);
|
||||
cv::Mat channels[3 /*input->value.channels()*/];
|
||||
cv::split(input->value, channels);
|
||||
channels[2].convertTo(output->value, CV_16UC1);
|
||||
output->id = input->id;
|
||||
output->data = input->data;
|
||||
// const ObjMat *input = Object::Cast<ObjMat>(in);
|
||||
// ObjMat *output = Object::Cast<ObjMat>(out);
|
||||
// cv::Mat channels[3 /*input->value.channels()*/];
|
||||
// cv::split(input->value, channels);
|
||||
// channels[2].convertTo(output->value, CV_16UC1);
|
||||
// output->id = input->id;
|
||||
// output->data = input->data;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ MYNTEYE_BEGIN_NAMESPACE
|
|||
|
||||
const char PointsProcessor::NAME[] = "PointsProcessor";
|
||||
|
||||
PointsProcessor::PointsProcessor(cv::Mat Q, std::int32_t proc_period)
|
||||
: Processor(std::move(proc_period)), Q_(std::move(Q)) {
|
||||
PointsProcessor::PointsProcessor(std::int32_t proc_period)
|
||||
: Processor(std::move(proc_period)) {
|
||||
VLOG(2) << __func__ << ": proc_period=" << proc_period;
|
||||
}
|
||||
|
||||
|
@ -42,16 +42,6 @@ Object *PointsProcessor::OnCreateOutput() {
|
|||
|
||||
bool PointsProcessor::OnProcess(
|
||||
Object *const in, Object *const out, Processor *const parent) {
|
||||
#ifdef WITH_CAM_MODELS
|
||||
|
||||
#else
|
||||
MYNTEYE_UNUSED(parent)
|
||||
const ObjMat *input = Object::Cast<ObjMat>(in);
|
||||
ObjMat *output = Object::Cast<ObjMat>(out);
|
||||
cv::reprojectImageTo3D(input->value, output->value, Q_, true);
|
||||
output->id = input->id;
|
||||
output->data = input->data;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class PointsProcessor : public Processor {
|
|||
public:
|
||||
static const char NAME[];
|
||||
|
||||
explicit PointsProcessor(cv::Mat Q, std::int32_t proc_period = 0);
|
||||
explicit PointsProcessor(std::int32_t proc_period = 0);
|
||||
virtual ~PointsProcessor();
|
||||
|
||||
std::string Name() override;
|
||||
|
|
|
@ -484,7 +484,7 @@ void Synthetic::InitProcessors() {
|
|||
points_processor = points_processor_pin;
|
||||
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
||||
auto &&points_processor_kan = std::make_shared<PointsProcessor>(
|
||||
rectify_processor->Q, POINTS_PROC_PERIOD);
|
||||
POINTS_PROC_PERIOD);
|
||||
points_processor = points_processor_kan;
|
||||
} else {
|
||||
LOG(ERROR) << "Unknow calib model type in device: "
|
||||
|
|
Loading…
Reference in New Issue
Block a user