This is a python implementation of the nonlocal self-similarity applied on the temporal dimension, as described in:
Mariella Dimiccoli, Herwig Wendt. Enhancing temporal segmentation by nonlocal self-similarity. In the Proceedings of the International Conferenceo in Image Processing (ICIP), Taipei, Taiwan, 2019.
If you find this code useful, please cite the paper above.
python main.py -X "EDUB-Seg_seq1.npy" -N 3 -n 1 -p 0.25
python main_gpu.py -X "EDUB-Seg_seq1.npy" -N 3 -n 1 -p 0.25