Skip to content

Latest commit

 

History

History
74 lines (58 loc) · 2.95 KB

README.md

File metadata and controls

74 lines (58 loc) · 2.95 KB

SimulatedMicroscope

A Micro-Manager device adapter that simulates a simple microscope. Like DemoCamera, it needs no hardware, but its images are more realistic. The specimen (filaments or nuclei) moves with the XY stage, blurs with defocus, and responds to the objective, exposure, and shutter.

The goal is to generate images that react to device settings and positions in a reasonably realistic manner, under the constraint that we maintain real-time responsiveness. It should be useful for testing interactive tools (such as stage explorers, pixel size calibrators) and some data-driven acquisition loops, but not for full testing of image analysis pipelines. We do not aim to generate the most realistic images possible.

Devices

Add SimHub in the Hardware Configuration Wizard, then choose any of its peripherals:

  • SimCam: 512 x 512, 16-bit camera. The Mode property selects the specimen (Filaments or Nuclei). Exposure scales the signal. Images include shot and read noise.
  • SimXY: XY stage. Moving it moves the specimen in the image.
  • SimFocus: Z stage. Moving away from focus blurs the image.
  • SimObjectiveTurret: Objectives from 10x to 100x. Magnification sets the image scale, NA sets how quickly blur increases with defocus, and both affect brightness.
  • SimShutter: When closed, the camera sees no light (noise only). If no shutter is loaded, light is always on.

The stages move at a finite speed and have properties to adjust their timing.

Device properties and the simulated images will likely change in future versions.

Building

Requires a C++17 compiler, Meson, Ninja, and just. Most dependencies are downloaded automatically. Boost is optional. See the justfile (or run just) for the available commands. Typically:

just build
just test

Installing

Prebuilt binaries are available on the Releases page. Unzip the file for your platform into your Micro-Manager installation directory.

On macOS, the binaries are not signed, so Gatekeeper will usually block a file downloaded with a web browser. Download with curl -LO <url> instead, or remove the quarantine attribute from the extracted file with xattr -d com.apple.quarantine libmmgr_dal_SimulatedMicroscope.

If you build from source, the build produces builddir/SimulatedMicroscope.mmdev. Copy this file into your Micro-Manager installation directory and rename it:

Platform File name
Windows mmgr_dal_SimulatedMicroscope.dll
Linux libmmgr_dal_SimulatedMicroscope.so.0
macOS libmmgr_dal_SimulatedMicroscope