Skip to content

Commit

Permalink
new filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Dec 24, 2019
1 parent d16ecd3 commit a0b4c78
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.

16 changes: 16 additions & 0 deletions Acid.Cam.v2.OSX/ac-filter38.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,3 +723,19 @@ void ac::VideoSaturateAdd(cv::Mat &frame) {
}
AddInvert(frame);
}

void ac::VideoSmoothMedianBlend(cv::Mat &frame) {
if(v_cap.isOpened() == false)
return;
cv::Mat vframe;
if(VideoFrame(vframe)) {
static MatrixCollection<8> collection;
cv::Mat reframe;
ac_resize(vframe, reframe, frame.size());
collection.shiftFrames(frame);
collection.shiftFrames(reframe);
Smooth(frame, &collection);
MedianBlendMultiThread(frame);
}
AddInvert(frame);
}
10 changes: 6 additions & 4 deletions Acid.Cam.v2.OSX/ac-filtercat.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Acid.Cam.v2.OSX/ac.h
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,7 @@ namespace ac {
void RGBWave(cv::Mat &frame);
void VideoCollectionOutline(cv::Mat &frame);
void VideoSaturateAdd(cv::Mat &frame);
void VideoSmoothMedianBlend(cv::Mat &frame);

// #NoFilter
void NoFilter(cv::Mat &frame);
Expand Down

0 comments on commit a0b4c78

Please sign in to comment.