Skip to content

这里需要修改一下,才能编译通过。 #1

@sotex

Description

@sotex

这里在输出到0-255范围的时候貌似少写了一个0。
https://github.com/Sar-Kerson/dehazeProcessor/blob/94ec841aa09aac3783e7fde8f5268a5395a8bde6/src/darkchannelPriorProcessor.cpp#L52-L54

            this->dst().at<cv::Vec3b>(i, j)[0] = t0 < 0 ? 0 : t0 > 1 ? 255 : t0*255;
            this->dst().at<cv::Vec3b>(i, j)[1] = t1 < 0 ? 0 : t1 > 1 ? 255 : t1*255;
            this->dst().at<cv::Vec3b>(i, j)[2] = t2 < 0 ? 0 : t2 > 1 ? 255 : t2*255;

以及
https://github.com/Sar-Kerson/dehazeProcessor/blob/94ec841aa09aac3783e7fde8f5268a5395a8bde6/src/nonLocalDehazeProcessor.cpp#L84-L87

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions