Login  Register

Re: Suggestion for Plot Profile

Posted by Michael Schmid on Mar 12, 2021; 11:55am
URL: http://imagej.273.s1.nabble.com/Suggestion-for-Plot-Profile-tp5024515p5024525.html

Hi Fred,

yes, I agree - sorry, I have not read it carefully.

The hint with overloading the CPU was a good one; I could not reproduce
it before, but I have seen the problem when running in parallel a median
with radius=100 on a 5000x5000 RGB noise image in parallel (this
operation takes ages and puts almost 100% load on all CPU cores).

So it definitely looks like a race condition. I'll have a quick look at
it, but I can't promise much.

Michael
________________________________________________________________
On 12.03.21 03:42, Fred Damen wrote:

> Greetings Michael,
>
> If I read Gabriel's issue correctly, the problem is not that the label
> disappears, the problem is that sometimes the label does not initially
> appear in the GUI, albeit when the plotwindow is convinced to redisplay
> the label shows in the GUI.  This sounds similar to problems that I have
> had in the past, (subject: plot window bug), where the plot window was
> displayed with a size other that what I had requested and upon causing a
> redisplay the window would adjust to the requested size.  I was able to
> force a redisplay programmatically in Java by calling calling
> windowActivated(null) and then drawPlot again.  The problem on my Linux
> machine tended to happen more often the more it was overloaded, thus my
> suspension of a race condition between Java proper and ImageJ in regards
> to the GUI.
>
> Fred
>
> PS: Wayne has already fixed this specific problem.
>
> On Thu, March 11, 2021 3:13 pm, Michael Schmid wrote:
>> Hi Gabriel,
>>
>> sorry, I can't reproduce the problem. The label "horizontal" remains
>> visible when resizing or maximizing the plot, even with
>> Image>Adjust>Size. It also remains in Live Mode.
>> Even "Duplicate" copies it (but it loses the information that this is a
>> plot).
>>
>> Is the remaining text of the subtitle line (image size, 8-bit, memory)
>> still there? If not, it could be either a problem of the graphics driver
>> or the interaction of Java with the Window Manager of the operating
>> system.
>>
>> When the label has disappeared, with the plot being the active window,
>> could you please try this JavaScript?
>>
>>     imp=IJ.getImage();
>>     IJ.log(imp.getProperty("Label"));
>>
>> It should print the label "horizontal" to the log.
>>
>>
>> Michael
>> ________________________________________________________________
>> On 11.03.21 20:29, Gabriel Landini wrote:
>>> On Thursday, 11 March 2021 13:00:33 GMT [hidden email] wrote:
>>>>> On Mar 10, 2021, at 9:31 AM, Gabriel Landini <[hidden email]>
>>>>> wrote:
>>>>> I have a suggestion:
>>>
>>>> Thanks to Michael Schmid, ImageJ displays â?ohorizontalâ? in the image
>>>> info
>>>> line for column average plots and â?overticalâ? for row average plots.
>>>
>>> Thank you!! For some reason I think there might be a refresh of the plot
>>> missing?
>>>
>>> newImage("Untitled", "RGB ramp", 256, 256, 1);
>>> run("Select All");
>>> run("Plot Profile");
>>> //selectWindow("Untitled");
>>> //setKeyDown("alt"); run("Plot Profile");
>>>
>>> does not always show the string. If I maximise/resize the plot then the
>>> string
>>> appears.
>>>
>>> Best wishes,
>>>
>>> Gabriel
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html