IJ: IJ object

Description Usage Format Details References See Also Examples

Description

This represents an object of class ij.IJ created when the RImageJ package is loaded.

Usage

1

Format

This is a Java object, instance of the class ij.IJ, that is created when the package is loaded.

Details

The ImageJ macro language is basically made of calls to methods of the IJ class. This object allows to mimic the macro language by using the convenient dollar notation. See examples below.

References

The Java documentation of the class IJ: http://rsbweb.nih.gov/ij/developer/api/ij/IJ.html

ImageJ macro language: http://rsbweb.nih.gov/ij/developer/macro/macros.html

See Also

ImageJ, IJWindowManager

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## Load a JPEG image in ImageJ and show it
logo <- system.file("images", "R.jpg", package = "RImageJ")
image <- IJ$openImage(logo)
image$show()
## Manipulate this image in ImageJ
IJ$run("8-bit")
IJ$run("Invert")
## ... and close it
image$close()

## End(Not run)

RImageJ documentation built on May 2, 2019, 5:53 p.m.