fourMs / MGT-python

Musical Gestures Toolbox for Python
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/musicalgesturestoolbox/mgt-python/index.html
GNU General Public License v3.0
52 stars 11 forks source link

SSM on videograms #284

Closed alexarje closed 1 year ago

alexarje commented 1 year ago

The SSM currently works with motiongrams but it would be cool to also run it on videograms.

joachimpoutaraud commented 1 year ago

I have updated the _ssm.py file and added the possibility to render Self-Similarity Matrices on videograms. This can be achieved with the following function

source_video = musicalgestures.MgVideo('/path/to/source/video.avi')
videogram_ssm = source_video.ssm(features='videograms') 
# view results
videogram_ssm.show() # view both SSMs