Skip to content

kencan7749/fastMotionEnergy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastMotionEnergy

Here is the python repository for calculating MotionEnergy from gray scale video (height, width, frame).

I transported and refactored the matlab version publically avairable at gallant lab (https://github.com/gallantlab/motion_energy_matlab).

usage

from fastMotionEnergy import fastMotionEnergyModel
from preprocWavelets_grid_GetMetaParams import preprocWavelets_gird_GetMetaParams

params = preprocWavelets_gird_GetMetaParams(2) #2 is minimum one, the detail is at the original github page.

stimsize = (224, 224, 16) #set the video size for analyzing
#initialize
me = fastMotionEnergyModel(stimsize, params)

motionenergy = me.calculate(vid) #vid is gray scale video whose shape is (height, width, frame)

#motion energy is the 2D map whose shape is (frame, filter), and each elements indiated the motion energy of filter output at certain time t.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages