gallantlab / pymoten Goto Github PK
View Code? Open in Web Editor NEWMotion energy features from video
Home Page: https://gallantlab.github.io/pymoten/
License: BSD 2-Clause "Simplified" License
Motion energy features from video
Home Page: https://gallantlab.github.io/pymoten/
License: BSD 2-Clause "Simplified" License
in approximate order of simplicity
The options are fixing travis setup or switching to github workflows
It should be feasible to have a running buffer of image luminance values and compute the motion-energy features using that buffer only.
advantages:
removes memory errors due to loading a large number of images.
allows for some sort of real-time-ish use (except at the edges)
disadvantages:
?
explain image :
image pixels (e.g. 800x600) vs. (vdim=600, hdim=800) vs. (vdim=1, hdim=aspect_ratio)
a complex pyramid class that constructs two static pyramids with 0 and 90 degree spatial phase offsets
from the tests
just as a reminder to do this right after the repo is made public.
CI for public repos will need to point to travis.org (instead of travis.com)
Hi,
Thanks for creating and sharing this package. I'm planning on using pymoten for a video frame analysis. I was able to successfully install it (v0.0.3), but when I try to import it on PyCharm, I get the following error:
Traceback (most recent call last):
File "~IPython/core/interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-5-c59789fac0c8>", line 1, in <module>
import moten
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/~/.venv/lib/python3.12/site-packages/moten/__init__.py", line 14, in <module>
from moten import (pyramids,
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/~/.venv/lib/python3.12/site-packages/moten/io.py", line 195, in <module>
def imagearray2luminance(uint8arr, size=None, filter=Image.ANTIALIAS, dtype=np.float64):
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
Best,
Ekin
This is getting complicated. I've added a couple of lines to the travis yaml. These should be added in to the Makefile instead (e.g. https://github.com/gallantlab/cottoncandy/blob/master/gendoc/Makefile).
Hello,
This is the first time I am using this library and learning about motion energy as a topic, so I would like to apologize for the very naive question. I would like to use this library to compute direction of motion for a moving object in a given video. Can you tell me to do it using this library?
Thanks a lot
needs to be double checked
Example: [https://gallantlab.github.io/pymoten/auto_examples/introduction/demo_show_filters.html#sphx-glr-auto-examples-introduction-demo-show-filters-py](Visualizing the motion energy filters)
BTW this example is really cool
Got this error when try to do "import moten". It related to the recent deprecation of 'ANTILIAS' in Pillow 10 (mpetroff/pannellum#1119)
fix phase offset parameter handing to allow static quadrature-pairs
requires minor modifications from old API
abstract away numpy/torch to allow for cpu/gpu agnostic code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.