algorithm - Matlab image analysis, trying to detect direction of movement -


i'm trying solve problem i'm facing in detecting direction of movement of image.

so have video i'm trying analyze, composed of contracting objects (continuaslly shrink , expand) , i'm trying able detect if current frame of move shrinked or expand !

here example of 2 frames 1 objects there expanded , other shrinked contracted expanded

note: can't see deference when on top of each other, try save , view 1 after other on computer.

so there way can detect direction of movement in video ? (inward of outward ?)

thanks lot

this can solve "optical flow" has been studied several decades now.

the classical method horn-schnuck http://en.wikipedia.org/wiki/horn%e2%80%93schunck_method can download here: http://www.mathworks.com/matlabcentral/fileexchange/22756-horn-schunck-optical-flow-method . it's fast not accurate way solve problem tends blur regions interested in detecting since minimizes l2 norm of gradients. here's got on images using horn-schnuck off shelf:

the red areas correspond regions of motion.

since images have lots of edges it's worthwhile try out more modern algorithms. http://people.csail.mit.edu/celiu/opticalflow/ might help.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -