fix: reduce more copy times
This commit is contained in:
parent
a5b337b50f
commit
34b079f9ad
|
@ -34,6 +34,12 @@ class DepthProcessor : public Processor {
|
||||||
std::string Name() override;
|
std::string Name() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
inline Processor::process_type ProcessOutputConnection() override {
|
||||||
|
return Processor::WITHOUT_CLONE;
|
||||||
|
}
|
||||||
|
inline Processor::process_type ProcessInputConnection() override {
|
||||||
|
return Processor::WITHOUT_CLONE;
|
||||||
|
}
|
||||||
Object *OnCreateOutput() override;
|
Object *OnCreateOutput() override;
|
||||||
bool OnProcess(
|
bool OnProcess(
|
||||||
Object *const in, Object *const out,
|
Object *const in, Object *const out,
|
||||||
|
|
|
@ -41,6 +41,9 @@ class DisparityProcessor : public Processor {
|
||||||
void NotifyComputingTypeChanged(const DisparityComputingMethod &MethodType);
|
void NotifyComputingTypeChanged(const DisparityComputingMethod &MethodType);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
inline Processor::process_type ProcessOutputConnection() override {
|
||||||
|
return Processor::WITHOUT_CLONE;
|
||||||
|
}
|
||||||
Object *OnCreateOutput() override;
|
Object *OnCreateOutput() override;
|
||||||
bool OnProcess(
|
bool OnProcess(
|
||||||
Object *const in, Object *const out,
|
Object *const in, Object *const out,
|
||||||
|
|
|
@ -37,6 +37,12 @@ class PointsProcessorOCV : public Processor {
|
||||||
bool OnProcess(
|
bool OnProcess(
|
||||||
Object *const in, Object *const out,
|
Object *const in, Object *const out,
|
||||||
std::shared_ptr<Processor> const parent) override;
|
std::shared_ptr<Processor> const parent) override;
|
||||||
|
inline Processor::process_type ProcessOutputConnection() override {
|
||||||
|
return Processor::WITHOUT_CLONE;
|
||||||
|
}
|
||||||
|
inline Processor::process_type ProcessInputConnection() override {
|
||||||
|
return Processor::WITHOUT_CLONE;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cv::Mat Q_;
|
cv::Mat Q_;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user