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
import cv2 | |
import numpy as np | |
def customDeen(frame0, | |
frame1, | |
blockOne, | |
algorithmType = 'basic', | |
minMaxKernel = (15,15), | |
minMaxLowLimit = 10, | |
cliplimit = 2.0, |
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
import cv2 | |
import numpy as np | |
def minMaxFilter(img, filterSize, minContrast): | |
""" | |
After R.Adrian, J.Westerweel, "Particle image velocimetry", Cambridge | |
university press, 2011. See ch.6.1.2, p.248-250. | |
Parameters: img (ndarray) - image to be filtered | |
filterSize (ndarray) - a 1x2 numpy array of the filter height | |
and width correspondingly |