Skip to content

A minimal reproducible example showing how to get MMCore image buffer into OpenCV and display the result through Imgui

License

Notifications You must be signed in to change notification settings

tractatus/MMCore_OpenCV_Imgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


MMCore, OpenCV, Imgui

A minimal reproducible example using MMCore to handle microscope I/O,
OpenCV for image processing and
Imgui for bloat-free GUI with minimal dependencies.

About The Project

I still havent completely made the compilation of MMCore entirely into CMake so just download the orignal micromanager source code and compile it through their automake instructions.

Installation

Step 1-3 follows the compilation advice for MicroManager Java which compiles MMDevice and makes makefile for MMCore. After compiling take the entire folder mmCoreAndDevices and place in this directory. See: https://github.com/micro-manager/micro-manager/blob/efb524723a90ed1a329b4423c698edfde59d0629/doc/how-to-build.md

  1. Install MicroManager from binary as usual and check that it works with your microscope. Then Clone the MicroManager repo:

    git clone https://github.com/micro-manager/micro-manager.git
  2. First check that you have the following dependencies for compiling micromanager:

    which autoconf
    which automake
    which glibtool
    which pkg-config
    brew info boost
    brew info opencv4

    If not install with homebrew. Boost is necessary for micromanager, opencv is not but this C++ repo uses OpenCV to process the image.

  3. Generate configure file:

    ./autogen.sh
  4. Run configure

    ./configure
  5. Compile

    make
  6. Move to mmCoreAndDevices/MMCore and make sure it is compiled

    cd ./mmCoreAndDevices/MMCore
    make
    cd ../..
  7. Clone this repo and copy the mmCoreAndDevices directory and replace it:

    git clone https://github.com/tractatus/MMCore_OpenCV_Imgui.git
    cp -r ./mmCoreAndDevices ./MMCore_OpenCV_Imgui/
  8. Compile:

    cd MMCore_OpenCV_Imgui
    cmake .
    make
  9. Run:

    ./micromanager

About

A minimal reproducible example showing how to get MMCore image buffer into OpenCV and display the result through Imgui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published