Overview of the Mira MX Script Language


The Mira MX Script Language is a high-level program extension language for the Mira MX software platform. MX Script is designed for processing images and other data using scripts inside the Mira MX environment. MX Script is based on the Lua Programming Language and it offers the following advantages in scientific and technical applications:

    Lua contributes a modern, versatile programming language and a fast, robust computing engine.

    Mira contributes an extensive library of image processing and analysis functions, plus a superior image processing GUI for parallel development and prototyping.

The Lua Programming Language was chosen as a scripting engine for Mira because it provides a unique combination of simplicity, flexibility, robustness, and power. Yet scientific and technical users with just modest experience programming in C, C++, Pascal, Perl, or even Basic will find it rather easy to write scripts that do serious work. To the user of MX Script, these attributes lead to simpler scripts that do more, require less debugging time, and provide exceptional crash resistance. In addition, Lua is one of the fastest executing script languages known. Working in the Mira environment, the resulting combination of interactive development, testing, and execution of scripted procedures is unique within the framework of image processing software.

Beyond baseline constructs such as dynamic typing, block structuring, looping, and functions, Lua also provides advanced capabilities that are there if you need them, but not required if you don't. Advanced concepts like associative sets, lexical scoping, overloading are at the core of the language, and object oriented capabilities such as classes, privacy, inheritance, and polymorphism are also available. The Mira MX Script Language implements these advanced features by providing a class interface that is relatively simple to use, yet extraordinarily powerful in image processing applications. The language is indefinitely extensible so that you can create you own new functions and classes independently or based upon the functionality contained in the standard distribution.

This version of MX Script uses Lua version 5.1.4.

Related Topics

Contents

Working with Scripts

Going Further with Lua