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

example_15-04.cpp #78

Open
hongry18 opened this issue Jun 18, 2019 · 0 comments
Open

example_15-04.cpp #78

hongry18 opened this issue Jun 18, 2019 · 0 comments

Comments

@hongry18
Copy link

hongry18 commented Jun 18, 2019

my enviroment mac os mojave 10.14

updateCodebook(cv::Vec<unsigned char, 3> const&, CodeBook&, int*, int) + 117 (ex-15.4.cpp:67)

segmentation fault: 11

for (n = 0; n<numChannels; n++) {
        high[n] = p[n] + *(cbBounds+n); // segmentation fault 11 point
        if ( high[n] > 255 ) {
            high[n] = 255;
        }

        low[n] = p[n] - *(cbBounds+n);
        if ( low[n] < 0 ) {
            low[n] = 0;
        }
    }
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

No branches or pull requests

1 participant