<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - "Profile Plot Options..." exception via macro/batch mode"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=752#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - "Profile Plot Options..." exception via macro/batch mode"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=752">bug 752</a>
from <span class="vcard"><a class="email" href="mailto:ctrueden@wisc.edu" title="Curtis Rueden <ctrueden@wisc.edu>"> <span class="fn">Curtis Rueden</span></a>
</span></b>
<pre>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:
<a href="https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/plugin/Profiler.java#L66-L72">https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/plugin/Profiler.java#L66-L72</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>