[ImageJ-devel] [Bug 752] "Profile Plot Options..." exception via macro/batch mode

bugzilla at fiji.sc bugzilla at fiji.sc
Sat Jun 14 21:28:23 CDT 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=752

--- Comment #8 from Curtis Rueden <ctrueden at wisc.edu> ---
This bug is caused by the Profiler plugin attempting to crop the maximum
Profile Plot size to stay within the bounds of the screen; see:

https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/plugin/Profiler.java#L66-L72

The problem is that in headless mode, IJ.getScreenSize() returns (0, 0).

Personally, I think limiting the Profile Plot size in this way is a bug, since
there are legitimate reasons to plot extremely large graphs larger than the
bounds of the screen, regardless of being in headless mode.

In any case, this is a bug that would need to be fixed in the ImageJ1 source by
Wayne Rasband.

In the meantime, if you leave off the "Profile Plot Options" call at the
beginning, the macro works. So, I was thinking that you could work around this
bug by first setting the desired Profile Plot Options in the UI, then quitting
ImageJ and invoking your headless macro(s) to generate and save plot profiles.
Unfortunately, it seems that the previous Profile Plot settings are not used
for some reason when the macro executes in this manner.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140615/f8686782/attachment.html>


More information about the ImageJ-devel mailing list