Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复merge_image中的引用问题 #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aldazhu
Copy link

@aldazhu aldazhu commented Apr 2, 2024

  1. 修改common.h和common.cpp中的merge_image函数为void merge_image(cv::Mat src1, cv::Mat src2, cv::Mat& w, cv::Mat out);
    就是把引用符去掉,opencv中的图像传递在函数入口这里不会发生深拷贝,merge_image中对out做的处理也会在调用它的地方产生效果,因为它们的图像数据地址就是同一块。
  2. make编译完可执行程序在build下面,和images,yaml只有一层, 应该把"../../images"换成"../images"。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants