This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | grep cd | cut -d' ' -f5 | sort | uniq -c | sort -k1 -n -r | head -n 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void blendWithMask(cv::Mat &base, cv::Mat &src, cv::Mat &mask, cv::Mat &out){ | |
char ch = base.channels(); | |
double alpha = 0; | |
for( int y = 0; y < base.rows; y++ ){ | |
uchar* pBS = base.ptr<uchar>(y); | |
uchar* pSR = src.ptr<uchar>(y); | |
uchar* pMK = mask.ptr<uchar>(y); | |
uchar* pOU = out.ptr<uchar>(y); | |
for( int x = 0; x < base.cols*ch; x++ ){ | |
int ix = x / ch; |
NewerOlder