Giter VIP home page Giter VIP logo

lima's Introduction

http://lima.blissgarden.org/_static/lima-logo-2-40perc.png

Library for Image Acquisition

Windows Status

Description

Lima ( L ibrary for Im age A cquisition) is a project for the unified control of 2D detectors. The aim is to clearly separate hardware specific code from common software configuration and features, like setting standard acquisition parameters (exposure time, external trigger), file saving and image processing.

Lima is a C++ library which can be used for many different cameras. The library is also available for Python and it provides a PyTango server for remote control.

Documentation: http://lima.blissgarden.org

Requirements

You need to install some tools and libraries for building Lima for both windows and Linux.

Build dependencies:

  • gcc for Linux
  • Visual Studio 2008 for x86 or x64 for Python 2.7.x
  • Visual Studio 2008 Express for x86 only for Python 2.7.x
  • Visual Studio 2015 for x86 and x64 for Python >= 3.5
  • git
  • CMake >= 3.1
  • gsl: For windows, download the esrf binary package gsl-windows and install it under "c:\program files\"

Python dependencies:

Lima can be compiled for python 2 and 3. The following packages must be installed, development versions with header files (include files) are mandatory.

The following requirements are optional.

Saving format dependencies:

PyTango server dependencies:

The LimaCCDs PyTango server only works for Python 2, it will be updated for Python 3 soon !!

Build and Install

Using scripts

the install scripts will run cmake, compile and install.

It accepts input arguments (see below) but it also uses a configuration file scripts/config.txt. Feel free to update this file for setting a permanent configuration for your own installation.

Linux:

[sudo] install.sh
[--git]
[--prefix=<desired installation path>]
[--python-packages=<desired python installation path>]
[options]

Windows:

install.bat
[--prefix=<desired installation path>]
[--python-packages=<desired python installation path>]
[options]

The --git (Linux only) option cab be used to clone the required submodules as a prerequisite. Otherwise you should install the submodules with git commands, for instance:

$ git submodule init third-party/Processlib
$ git submodule init camera/basler
$ git submodule init applications/tango/python
$ git submodule update

Options are <camera-name> <saving-format> python pytango-server:

  • camera-name:

    andor|andor3|basler|prosilica|adsc|mythen3|ueye|xh|xspress3|ultra| xpad|mythen|pco|marccd|pointgrey|imxpad|dexela|merlin|v4l2| eiger|pixirad|hexitec|aviex|roperscientific|rayonixhs|espia|maxipix|frelon

  • saving-format:

    cbf|nxs|fits|edfgz|edflz4|tiff|hdf5

  • python: to compile python module

  • pytango-server: to install the PyTango server

Example:

$ sudo install.sh --git
                --prefix=./install
                --python-packages=./install/python
                tiff basler python pytango-server

Using cmake

Install first the project submodules:

$ git submodule init third-party/Processlib
$ git submodule init camera/basler
$ git submodule init applications/tango/python
$ git submodule update

Run cmake in the build directory:

$ mkdir build
$ cd build
$ cmake ..
    [-G "Visual Studio 9 2008 Win64" | -G "Visual Studio 9 2008" | -G "Unix Makefiles"]
    [-DCMAKE_INSTALL_PREFIX=<desired installation path>]
    [-DPYTHON_SITE_PACKAGES_DIR=<desired python installation path>]
    -DLIMA_ENABLE_TIFF=true
    -DLIMACAMERA_BASLER=true
    -DLIMA_ENABLE_PYTANGO_SERVER=true
    -DLIMA_ENABLE_PYTHON=true

Then compile and install:

$ cmake --build
$ sudo cmake --build --target install

May you need to update your environment?

If you have changed the default destination path for both libraries and python modules you should update your environment variables.

For Linux:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<my-new-install-dir>/Lima/lib

export PYTHONPATH=$PYTHONPATH:<my-new-install-dir>

For Windows:

Update the system wide variables PATH for the libraries and PYTHONPATH for python.

Lima Team contact: [email protected]

lima's People

Contributors

alejandrohomsp avatar alenz33 avatar anoureddine avatar aparenti avatar blefaudeux avatar cguilloud avatar claustre avatar flanglois avatar fthiam avatar grm84 avatar homsrego avatar hott-onin avatar laurent-claustre avatar manupapillon avatar nexeyasgara avatar philpep avatar saint-andre-come avatar sbahji avatar sdebionne avatar sebastien-petitdemange avatar teresanunez avatar watieryves avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.