• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

gallantlab/motion_energy_matlab

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

gallantlab/motion_energy_matlab

开源软件地址(OpenSource Url):

https://github.com/gallantlab/motion_energy_matlab

开源编程语言(OpenSource Language):

MATLAB 100.0%

开源软件介绍(OpenSource Introduction):

gallantlab/motion_energy_matlab

motion energy model motion_energy_matlab is a software library to calculate motion or static energy features of visual stimuli (movies or images).

QUICKSTART/USAGE

The main functions accept movie/image stimulus inputs and return the energy feature outputs. To test the code, you can use one of two methods. Either (1) use the sample data we have provided (click here to download). You should save the file somewhere on your Matlab path as 'nishimoto_2011_val_1min_uint8.mat'. Or (2) prepare your own set of movie frames in a 4D array of [X x Y x Color x Time]. For now, the code only supports square images (it may run for rectangular images, but the filters may be stretched and may give unexpected results). If you choose (2), you will need to change a line in ComputeMotionEnergy.m

Then run ComputeMotionEnergy.m in MATLAB (under demo/ folder):

>> ComputeMotionEnergy;

The code allows flexible specifications of filter array parameters, such as the highest spatial frequency, the number of directions of motion, the number of scales of filters, etc. Image pre-processing and post-processing parameters (such as how to handle color channels) can be specified as well. Default values can be specified for all parameters. For example, if you want to load a default parameter set and then only specify the highest spatial and temporal frequency:

>> gparams = preprocWavelets_grid_GetMetaParams(2); % load the default parameter set 2 (as in Nishimoto et al., 2011)
>> gparams.sfmax = 24; % the highest frequency is set to 24 cycles/image
>> gparams.tfmax = 6; % the highest temporal frequency is set to 6 cycles/time window
>> [S_gab, gparams] = preprocWavelets_grid(S_lum, gparams); % calculate the energy features of luminance pattern S_lum

For more details, please type ‘help [filename]’ (e.g.,):

>> help preprocWavelets_grid

REQUIREMENTS

  • MATLAB
  • Image Processing toolbox (for color conversion)

REFERENCES

The original motion energy model was proposed by Watson and Ahumada (1985) and Adelson and Bergen (1985). The codes were written by Shinji Nishimoto (Nishimoto et al., 2011; Nishimoto and Gallant 2011) and edited and commented by Mark Lescroart.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap