Skip to main content

A Python Package for Compressive Sampling and Reconstruction of Atomic Force Microscopy Images

Project description

Primary developers:

Christian Schou Oxvig, Patrick Steffen Pedersen

Additional developers:

Jan Østergaard, Thomas Arildsen, Tobias L. Jensen, Torben Larsen

Institution:

Aalborg University, Department of Electronic Systems, Signal and Information Processing

Version:
1.0.0

Introduction

Magni is a Python package which provides functionality for increasing the speed of image acquisition using Atomic Force Microscopy (AFM). The image acquisition algorithms of Magni are based on the Compressed Sensing (CS) signal acquisition paradigm and include both sensing and reconstruction. The sensing part of the acquisition generates sensed data from regular images possibly acquired using AFM. This is done by AFM hardware simulation. The reconstruction part of the acquisition reconstructs images from sensed data. This is done by CS reconstruction using well-known CS reconstruction algorithms modified for the purpose. The Python implementation of the above functionality uses the standard library, a number of third-party libraries, and additional utility functionality designed and implemented specifically for Magni. The functionality provided by Magni can thus be divided into five groups:

  • Atomic Force Microscopy: AFM specific functionality including AFM image acquisition, AFM hardware simulation, and AFM data file handling.

  • Compressed Sensing: General CS functionality including signal reconstruction and phase transition determination.

  • Imaging: General imaging functionality including measurement matrix and dictionary construction in addition to visualisation and evaluation.

  • Reproducibility: Tools that may aid in increasing the reproducibility of results obtained using Magni.

  • Utilities: General Python utilities including multiprocessing, tracing, and validation.

Downloading

Magni can be downloaded in a number of ways:

Furthermore, all official releases of the magni package (without examples and documentation) are made available through PyPI and binstar. Both of these are considered unofficial channels and provided solely for your convenience.

Installation

To use Magni, extract the downloaded archive and include the extracted Magni folder in your PYTHONPATH.

Magni has been designed for use with Python 2 >= 2.7 or Python 3 >= 3.3.

Required third party dependencies for Magni are:

  • PyTables (Tested on version >= 3.1)

  • Numpy (Tested on version >= 1.8)

  • Scipy (Tested on version >= 0.13)

  • Matplotlib (Tested on version >= 1.3)

Optional third party dependencies for Magni are:

  • IPython (Tested on version >= 1.1) (For running the IPython notebook examples)

  • Math Kernel Library (MKL) (Tested on version >= 11.1) (For accelerated vector operations)

  • Sphinx (Tested on version >= 1.2) (For building the documentation from source)

  • Napoleon (Tested on version >= 0.2.6) (For building the documentation from source)

You may use the ‘dep_check.py’ script found in the Magni folder under ‘/magni/tests/’ to check for missing dependencies for Magni. Simply run the script to print a dependency report.

Documentation

The included subpackages, modules, classes and functions are documented through Python docstrings using the same format as the third-party library, numpy, i.e. using the numpydoc standard. A description of any entity can thus be found in the source code of Magni in the docstring of that entity. For readability, the documentation has been compiled using Sphinx to produce an HTML page which can be found in the Magni folder under ‘/doc/build/html/index.html’. The entire documentation is also available as a PDF file in the Magni folder under ‘doc/pdf/index.pdf’. Note, that neither the HTML version nor the PDF version of the documentation is provided through PyPI and binstar.

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

magni-1.0.0.tar.gz (57.7 kB view details)

Uploaded Source

File details

Details for the file magni-1.0.0.tar.gz.

File metadata

  • Download URL: magni-1.0.0.tar.gz
  • Upload date:
  • Size: 57.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for magni-1.0.0.tar.gz
Algorithm Hash digest
SHA256 27d52a5ae830b641e7e4690d3b97d499462b21b644cfca40d44d581aad416e1a
MD5 938899978fef20b8e16b3af5d6d44efc
BLAKE2b-256 66a482f263c81fc56f9271f36fab92cf0e1d576559102724619287b4f9c2bd51

See more details on using hashes here.

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