Skip to content

Commit

Permalink
new filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Oct 22, 2019
1 parent 3bc6519 commit 6ae2d9f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions Acid.Cam.v2.OSX/ac-filter1.cpp

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Acid.Cam.v2.OSX/ac-filter33.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,3 +463,21 @@ void ac::VideoImage(cv::Mat &frame) {
}
AddInvert(frame);
}

void ac::VideoImageFade(cv::Mat &frame) {
if(blend_set == false || v_cap.isOpened() == false)
return;
cv::Mat reimage;
ac_resize(blend_image, reimage, frame.size());
cv::Mat vframe;
if(VideoFrame(vframe)) {
static double alpha = 1.0;
static int dir = 1;
cv::Mat reframe;
ac_resize(vframe, reframe, frame.size());
AlphaBlendDouble(reimage, reframe, frame, alpha, (1-alpha));
AlphaMovementMaxMin(alpha,dir,0.01, 1.0, 0.1);
}
AddInvert(frame);
}

Loading

0 comments on commit 6ae2d9f

Please sign in to comment.