Built in macro function to Java


#1

Hey I need to use some built in macro functions directly in a Java code. for an example

getPixelSize(unit, pixelWidth, pixelHeight)

How can I use this directly in JAVA. I have referenced imagej library and import IJ library to the java programme.


#2

Here an older thread of the ImageJ mailing list with a solution:

http://imagej.1557.x6.nabble.com/how-to-get-Pixel-Width-from-Properties-td5001114.html

You could also lookup Java macro function implementations in the ImageJ sources.