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

Lambda expression confuses vsi_clang #235

Open
sandeepdutta opened this Issue Nov 2, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@sandeepdutta

sandeepdutta commented Nov 2, 2018

The following adds the parameters of the lambda expression cvt_0 to the parameter list of the top level function.

void process_webcam_0(uint32_t oa[WC_IMGSIZE/WC_BPP], hls::stream &cont, hls::stream &ctl)
{
// wait for the webcam to start streaming
while (1) {
if (webcam_0 && webcam_0->running) break;
sleep(1);
};
auto cvt_0 = [] (cv::Mat &in, cv::Mat &out) {
cv::cvtColor(in,out,CV_RGB2GRAY);
};
// output convertion function : convert to gray scale
webcam_0->webcam_cvt_process_image(oa,cont,ctl,cvt_0);
}

@udnaan

This comment has been minimized.

Member

udnaan commented Nov 2, 2018

Should be fixed in master. Verify and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment