Skip to main content

Framework for Computer Vision setups in Neuroscience

Project description

PyPI - Version PyPI - Python Version PyPI - License PyPI - Downloads Documentation Status

🚧 Under Development

This project is still in an alpha stage. Expect rapid changes, incomplete features, and possible breaking updates between releases.

  • The API may evolve as we stabilize core functionality.
  • Documentation and examples are incomplete.
  • Feedback and bug reports are especially valuable at this stage.

NeuroVC

Fig1

Toolbox with utility functions for computer vision setups in neuroscience. The core module contains classes for motion magnification and camera io.

Citation

If you use this code in work for publications, please cite in the following way.

1. Camera routines:

Flotho, P., Bhamborae, M., Grun, T., Trenado, C., Thinnes, D., Limbach, D., & Strauss, D. J. (2021). Multimodal Data Acquisition at SARS-CoV-2 Drive Through Screening Centers: Setup Description and Experiences in Saarland, Germany. J Biophotonics.

BibTeX entry

@article{flotea2021b,
    author = {Flotho, P. and Bhamborae, M.J. and Grün, T. and Trenado, C. and Thinnes, D. and Limbach, D. and Strauss, D. J.},
    title = {Multimodal Data Acquisition at SARS-CoV-2 Drive Through Screening Centers: Setup Description and Experiences in Saarland, Germany},
    year = {2021},
  journal = {J Biophotonics},
  pages = {e202000512},
  doi = {https://doi.org/10.1002/jbio.202000512}
}

2. Motion magnification:

Flotho, P., Heiss, C., Steidl, G., & Strauss, D. J. (2023). Lagrangian motion magnification with double sparse optical flow decomposition. Frontiers in Applied Mathematics and Statistics, 9, 1164491.

@article{flotho2023lagrangian,
  title={Lagrangian motion magnification with double sparse optical flow decomposition},
  author={Flotho, Philipp and Heiss, Cosmas and Steidl, Gabriele and Strauss, Daniel J},
  journal={Frontiers in Applied Mathematics and Statistics},
  volume={9},
  pages={1164491},
  year={2023},
  publisher={Frontiers Media SA}
}

and for facial landmark-based decomposition:

Flotho, P., Heiß, C., Steidl, G., & Strauss, D. J. (2022, July). Lagrangian motion magnification with landmark-prior and sparse PCA for facial microexpressions and micromovements. In 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) (pp. 2215-2218). IEEE.

@inproceedings{flotho2022lagrangian,
  title={Lagrangian motion magnification with landmark-prior and sparse PCA for facial microexpressions and micromovements},
  author={Flotho, Philipp and Hei{\ss}, Cosmas and Steidl, Gabriele and Strauss, Daniel J},
  booktitle={2022 44th Annual International Conference of the IEEE Engineering in Medicine \& Biology Society (EMBC)},
  pages={2215--2218},
  year={2022},
  organization={IEEE}
}

and for using compressive function approaches:

Flotho, P., Bhamborae, M. J., Haab, L., & Strauss, D. J. (2018). Lagrangian motion magnification revisited: Continuous, magnitude driven motion scaling for psychophysiological experiments. In 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) (pp. 2215-2218). IEEE.

@inproceedings{flotho2018lagrangian,
  title={Lagrangian motion magnification revisited: Continuous, magnitude driven motion scaling for psychophysiological experiments},
  author={Flotho, Philipp and Bhamborae, Mayur J and Haab, Lars and Strauss, Daniel J},
  booktitle={2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC)},
  pages={3586--3589},
  year={2018},
  organization={IEEE}
}

3. Dense and sparse thermal landmarks:

Flotho, P., Piening, M., Kukleva, A., & Steidl, G. (2025). T-FAKE: Synthesizing Thermal Images for Facial Landmarking. In Proceedings of the Computer Vision and Pattern Recognition Conference (pp. 26356–26366).

@inproceedings{flotho2025t,
  title={T-FAKE: Synthesizing Thermal Images for Facial Landmarking},
  author={Flotho, Philipp and Piening, Moritz and Kukleva, Anna and Steidl, Gabriele},
  booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
  pages={26356--26366},
  year={2025}
}

Third-Party Code

This distribution bundles selected research code from external projects. Please cite the original authors when using functionality derived from these components.

RAFT optical flow:

Teed, Z., & Deng, J. (2020). RAFT: Recurrent All-Pairs Field Transforms for Optical Flow. In European Conference on Computer Vision (pp. 402–419). Springer.

@inproceedings{teed2020raft,
  title={Raft: Recurrent all-pairs field transforms for optical flow},
  author={Teed, Zachary and Deng, Jia},
  booktitle={European conference on computer vision},
  pages={402--419},
  year={2020},
  organization={Springer}
}

FlowMag motion magnification:

Pan, Z., Geng, D., & Owens, A. (2023). Self-supervised motion magnification by backpropagating through optical flow. Advances in Neural Information Processing Systems, 36, 253–273.

@article{pan2023self,
  title={Self-supervised motion magnification by backpropagating through optical flow},
  author={Pan, Zhaoying and Geng, Daniel and Owens, Andrew},
  journal={Advances in Neural Information Processing Systems},
  volume={36},
  pages={253--273},
  year={2023}
}

The FlowMag implementation is provided in neurovc.contrib.flowmag (MIT; see src/neurovc/contrib/flowmag/LICENSE). Supporting helpers live in neurovc.contrib.flowmag_util.

Thermal face detection (TFW):

Kuzdeuov, A., Aubakirova, D., Koishigarina, D., & Varol, H. A. (2022). TFW: Annotated Thermal Faces in the Wild Dataset. IEEE Transactions on Information Forensics and Security, 17, 2084–2094. https://doi.org/10.1109/TIFS.2022.3177949

@article{9781417,
  author={Kuzdeuov, Askat and Aubakirova, Dana and Koishigarina, Darina and Varol, Huseyin Atakan},
  journal={IEEE Transactions on Information Forensics and Security},
  title={TFW: Annotated Thermal Faces in the Wild Dataset},
  year={2022},
  volume={17},
  pages={2084-2094},
  doi={10.1109/TIFS.2022.3177949}
}

Licensing Notice:

This project contains code derived from RAFT, which is licensed under the BSD 3-Clause License. See neurovc/raft/LICENSE for details. The FlowMag contrib module (neurovc.contrib.flowmag) is distributed under the MIT License; see src/neurovc/contrib/flowmag/LICENSE. The rest of this project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 1.0 license (CC BY-NC-SA 1.0). See LICENSE for details.

When using or redistributing this project, you must comply with each respective license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurovc-0.1.0.tar.gz (623.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurovc-0.1.0-py3-none-any.whl (278.7 kB view details)

Uploaded Python 3

File details

Details for the file neurovc-0.1.0.tar.gz.

File metadata

  • Download URL: neurovc-0.1.0.tar.gz
  • Upload date:
  • Size: 623.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neurovc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 937564fd485a3be53682a47fed024a411c3fd04d2cb50c13b98e0938c3097d78
MD5 052a1c4cf0b4cc39e727d50ce3051b47
BLAKE2b-256 eacbb537fef04308e7a376143a69d2c89582a51938f777e80f7cfca27a4bc50a

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurovc-0.1.0.tar.gz:

Publisher: pypi-release.yml on openscivision/neurovc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neurovc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: neurovc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 278.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neurovc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28f8d20daf96501ad7f2b9366525675e18e17631a60fcabf4d1d91552d8168d6
MD5 8761fb5fed97177a225d7d7e679ee7aa
BLAKE2b-256 f77d8d9e67b110e507ee25319aa351bec9c51285732eb4dc7da78522af4be3ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurovc-0.1.0-py3-none-any.whl:

Publisher: pypi-release.yml on openscivision/neurovc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page