test_directory = '../test_mask/'
img = rgb2gray(io.imread(os.path.join(test_directory, "mask_cross2.tif")))
img1, mask = preprocess.dynamic_masking(img_as_float(img), method="intensity")
mask_coords = preprocess.mask_coordinates(mask,1.5,3, plot=True)
I get
You could follow the procedure in this notebook
or use `windef.py` with the `image_mask = True` as in this notebook
or simply use the line on all the frames:
`a1, mask = preprocess.dynamic_masking(img_as_float(a), method="intensity")`
`b1, mask = preprocess.dynamic_masking(img_as_float(b), method="intensity")`
to every image and working on `a1` rather than `a`, i.e. `extended_piv_process(a1,b1)`
If you send two PIV images - I'd make a small tutorial notebook that shows these options.
Alex