How to view the pixel position in the ImageJ status bar for spatially calibrated images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to view the pixel position in the ImageJ status bar for spatially calibrated images

Stein Rørvik
For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?

Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.

I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.

Is there a plugin for this, or is it easy to fix?

Stein


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Michael Entrup
Hi Stein,

if you hold the [Alt] key, the uncalibrated pixel coordinates are shown
in the status bar. It is important to move the cursor after pushing down
the [alt] key to update the status bar.

The method getLocationAsString() at line 2158 of ImagePlus [1] creates
the status message. On the fly, I don't know a method to change this,
without modifying the source code of ImageJ.

Best regards
Michael

[1]:
https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/ImagePlus.java


Am 16.12.2015 um 13:25 schrieb Stein Rørvik:

> For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?
>
> Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.
>
> I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.
>
> Is there a plugin for this, or is it easy to fix?
>
> Stein
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Stein Rørvik
Thanks, I did not know of this.

Holding the alt key gives the current XY pixel position of the cursor, but it does not provide any way to view the pixel width and height of selections, which is my main objective.

It seems straightforward to change the source code to get what I need, but then I need to redo that after any new update of ImageJ. If I patch parts of the ImageJ source code, is there some tool I can use to and re-use those changes later, in a semi-automated way?  I am not very experienced in maintaining java code changes. I know how to compile plugins as well as changing existing plugins, but my experience in Java ends about there.

Stein

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Entrup
Sent: 16. desember 2015 13:46
To: [hidden email]
Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Hi Stein,

if you hold the [Alt] key, the uncalibrated pixel coordinates are shown in the status bar. It is important to move the cursor after pushing down the [alt] key to update the status bar.

The method getLocationAsString() at line 2158 of ImagePlus [1] creates the status message. On the fly, I don't know a method to change this, without modifying the source code of ImageJ.

Best regards
Michael

[1]:
https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/ImagePlus.java


Am 16.12.2015 um 13:25 schrieb Stein Rørvik:

> For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?
>
> Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.
>
> I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.
>
> Is there a plugin for this, or is it easy to fix?
>
> Stein
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Rasband, Wayne (NIH/NIMH) [E]
On Dec 21, 2015, at 9:09 AM, Stein Rørvik <[hidden email]> wrote:
>
> Thanks, I did not know of this.
>
> Holding the alt key gives the current XY pixel position of the cursor, but it does not provide any way to view the pixel width and height of selections, which is my main objective.

Upgrade to the latest ImageJ daily build (1.50f27) and the pixel width and height of selections will be displayed in pixels when you press the alt or shift key.

-wayne

> It seems straightforward to change the source code to get what I need, but then I need to redo that after any new update of ImageJ. If I patch parts of the ImageJ source code, is there some tool I can use to and re-use those changes later, in a semi-automated way?  I am not very experienced in maintaining java code changes. I know how to compile plugins as well as changing existing plugins, but my experience in Java ends about there.
>
> Stein
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Entrup
> Sent: 16. desember 2015 13:46
> To: [hidden email]
> Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images
>
> Hi Stein,
>
> if you hold the [Alt] key, the uncalibrated pixel coordinates are shown in the status bar. It is important to move the cursor after pushing down the [alt] key to update the status bar.
>
> The method getLocationAsString() at line 2158 of ImagePlus [1] creates the status message. On the fly, I don't know a method to change this, without modifying the source code of ImageJ.
>
> Best regards
> Michael
>
> [1]:
> https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/ImagePlus.java
>
>
> Am 16.12.2015 um 13:25 schrieb Stein Rørvik:
>> For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?
>>
>> Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.
>>
>> I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.
>>
>> Is there a plugin for this, or is it easy to fix?
>>
>> Stein
>>
>>
>> --
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Stein Rørvik
Thanks,
This works as described; but the pixel width or height can still not be shown while making the selection which is what I need.
Sorry for not making this clear in my original post.
I cannot press the shift or alt key at the same time as making the selection, because both keys alters the way the selection is made:
The former forces a quadratic selection, and the latter subtracts the new selection from the current selection.
What I am looking for is an easy way to see the pixel size of selections as I create them, to make them of the desired pixel size.
I think the best solution would be to always show the calibrated sizes with uncalibrated sizes in parenthesis in the status bar in the same way as it is done with calibrated greyscale values.

Stein

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Rasband, Wayne (NIH/NIMH) [E]
Sent: 22. desember 2015 02:46
To: [hidden email]
Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

On Dec 21, 2015, at 9:09 AM, Stein Rørvik <[hidden email]> wrote:
>
> Thanks, I did not know of this.
>
> Holding the alt key gives the current XY pixel position of the cursor, but it does not provide any way to view the pixel width and height of selections, which is my main objective.

Upgrade to the latest ImageJ daily build (1.50f27) and the pixel width and height of selections will be displayed in pixels when you press the alt or shift key.

-wayne

> It seems straightforward to change the source code to get what I need, but then I need to redo that after any new update of ImageJ. If I patch parts of the ImageJ source code, is there some tool I can use to and re-use those changes later, in a semi-automated way?  I am not very experienced in maintaining java code changes. I know how to compile plugins as well as changing existing plugins, but my experience in Java ends about there.
>
> Stein
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Entrup
> Sent: 16. desember 2015 13:46
> To: [hidden email]
> Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images
>
> Hi Stein,
>
> if you hold the [Alt] key, the uncalibrated pixel coordinates are shown in the status bar. It is important to move the cursor after pushing down the [alt] key to update the status bar.
>
> The method getLocationAsString() at line 2158 of ImagePlus [1] creates the status message. On the fly, I don't know a method to change this, without modifying the source code of ImageJ.
>
> Best regards
> Michael
>
> [1]:
> https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/ImagePlus.java
>
>
> Am 16.12.2015 um 13:25 schrieb Stein Rørvik:
>> For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?
>>
>> Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.
>>
>> I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.
>>
>> Is there a plugin for this, or is it easy to fix?
>>
>> Stein
>>
>>
>> --
>> 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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images

Rasband, Wayne (NIH/NIMH) [E]
> On Dec 28, 2015, at 8:48 AM, Stein Rørvik <[hidden email]> wrote:
>
> Thanks,
> This works as described; but the pixel width or height can still not be shown while making the selection which is what I need.
> Sorry for not making this clear in my original post.
> I cannot press the shift or alt key at the same time as making the selection, because both keys alters the way the selection is made:
> The former forces a quadratic selection, and the latter subtracts the new selection from the current selection.
> What I am looking for is an easy way to see the pixel size of selections as I create them, to make them of the desired pixel size.
> I think the best solution would be to always show the calibrated sizes with uncalibrated sizes in parenthesis in the status bar in the same way as it is done with calibrated greyscale values.

The latest ImageJ daily build (1.50f31) shows the uncalibrated selection width and height in parenthesis.

-wayne


> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Rasband, Wayne (NIH/NIMH) [E]
> Sent: 22. desember 2015 02:46
> To: [hidden email]
> Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images
>
> On Dec 21, 2015, at 9:09 AM, Stein Rørvik <[hidden email]> wrote:
>>
>> Thanks, I did not know of this.
>>
>> Holding the alt key gives the current XY pixel position of the cursor, but it does not provide any way to view the pixel width and height of selections, which is my main objective.
>
> Upgrade to the latest ImageJ daily build (1.50f27) and the pixel width and height of selections will be displayed in pixels when you press the alt or shift key.
>
> -wayne
>
>> It seems straightforward to change the source code to get what I need, but then I need to redo that after any new update of ImageJ. If I patch parts of the ImageJ source code, is there some tool I can use to and re-use those changes later, in a semi-automated way?  I am not very experienced in maintaining java code changes. I know how to compile plugins as well as changing existing plugins, but my experience in Java ends about there.
>>
>> Stein
>>
>> -----Original Message-----
>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Entrup
>> Sent: 16. desember 2015 13:46
>> To: [hidden email]
>> Subject: Re: How to view the pixel position in the ImageJ status bar for spatially calibrated images
>>
>> Hi Stein,
>>
>> if you hold the [Alt] key, the uncalibrated pixel coordinates are shown in the status bar. It is important to move the cursor after pushing down the [alt] key to update the status bar.
>>
>> The method getLocationAsString() at line 2158 of ImagePlus [1] creates the status message. On the fly, I don't know a method to change this, without modifying the source code of ImageJ.
>>
>> Best regards
>> Michael
>>
>> [1]:
>> https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/ImagePlus.java
>>
>>
>> Am 16.12.2015 um 13:25 schrieb Stein Rørvik:
>>> For spatially calibrated images, is there any I can view the (uncalibrated) pixel position in the ImageJ status bar?
>>>
>>> Today for the greyscale value, the calibrated value is shown with uncalibrated value in parenthesis.
>>>
>>> I need the spatial calibration to be viewed the same way: calibrated value with pixel value in parenthesis.
>>>
>>> Is there a plugin for this, or is it easy to fix?
>>>
>>> Stein

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