Skip to content

example_15-04.cpp #78

@hongry18

Description

@hongry18

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;
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions