ijp-scala-console

IJP Scala Console is simple user interface for executing Scala scripts.

Actions Status Maven Central Scaladoc

The Scala Console can be run stand-alone, embedded in a desktop application, or ImageJ plugin. UI is build with ScalaFX.

Screenshot

ImageJ Script Examples

Example of an ImageJ script that get a handle to currently selected image and runs the "Median" filter plugin. If there is no image an error dialog is shown:

import ij.IJ._

Option(getImage) match {
  case Some(imp) => run(imp, "Median...", "radius=4")
  case None => noImage()
}

Additional example scripts can be found the examples directory.

ImageJ Plugin Download

Binaries can be downloaded from the releases page. Extract the binaries to the ImageJ plugins directory. The plugin install Plugins > Scripting > Scala Console.

Related Projects

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA