Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Dec 5, 2018
1 parent 1bc46ce commit d9bedbf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file not shown.
7 changes: 7 additions & 0 deletions Acid.Cam.v2.OSX/ac-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@ void ac::AlphaBlendDouble(const cv::Mat &one, const cv::Mat &two, cv::Mat &outpu
}
}

void ac::RealAlphaBlend(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha) {
if(one.size() != two.size()) {
return;
}
AlphaBlendDouble(one, two, output, alpha, 1-alpha);
}

void ac::AlphaXorBlend(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha) {
if(one.size() != two.size()) {
return;
Expand Down
1 change: 1 addition & 0 deletions Acid.Cam.v2.OSX/ac.h
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ namespace ac {
void setGamma(cv::Mat &frame, cv::Mat &outframe, double gamma);
void setSaturation(cv::Mat &frame, int saturation);
void AlphaBlend(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha);
void RealAlphaBlend(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha);
void AlphaBlendDouble(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha1, double alpha2);
void AlphaXorBlend(const cv::Mat &one, const cv::Mat &two, cv::Mat &output, double alpha);
void DarkenImage(cv::Mat &frame, unsigned int size);
Expand Down

0 comments on commit d9bedbf

Please sign in to comment.