Login  Register

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

Posted by Rasband, Wayne (NIH/NIMH) [E] on Dec 22, 2015; 1:37am
URL: http://imagej.273.s1.nabble.com/How-to-view-the-pixel-position-in-the-ImageJ-status-bar-for-spatially-calibrated-images-tp5015241p5015270.html

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