I am a new ImageJ user. I recently wrote a plugin that prints the intensity value of each pixel over the pixel at higher zoom levels. When using this plugin, users want to zoom in more than 3200%. Another 2 or 3 levels of zoom would probably be adequate.
Is there a way to enable additional deeper zoom levels to ImageJ? Thanks in advance. Christopher Bruns |
Hi Christopher,
you could add the pixel values as an overlay with a very small font size, but I fear that this will make ImageJ react rather slowly - at least for large images. Magnifications>32 would need a modification of the ImageCanvas class. An alternative might be the pixel inspector plugin http://imagejdocu.tudor.lu/doku.php? id=plugin:utilities:pixel_inspector:start Michael ________________________________________________________________ On 4 Nov 2010, at 15:03, Bruns, Christopher wrote: > I am a new ImageJ user. I recently wrote a plugin that prints the > intensity value of each pixel over the pixel at higher zoom > levels. When using this plugin, users want to zoom in more than > 3200%. Another 2 or 3 levels of zoom would probably be adequate. > > Is there a way to enable additional deeper zoom levels to ImageJ? > Thanks in advance. > > Christopher Bruns |
On 11/4/10 11:03 AM, "Michael Schmid" <[hidden email]> wrote:
[...] > you could add the pixel values as an overlay with a very small font > size, but I fear that this will make ImageJ react rather slowly - at > least for large images. Thank you Michael for your informative response. Yes. My first version of the plugin was slow until I modified it to only produce the overlay for pixels that are actually displayed. Now the performance is excellent. My desire for greater zoom levels is precisely to avoid always having to use a "very small font". I want something easier on the eyes. > Magnifications>32 would need a modification of the ImageCanvas class. It so happens that my plugin already creates a derived class from ImageCanvas. Do you think I might be able to implement enhanced zooming from there? If so, can you give me some hints about what changes might be required? Christopher [...] > Michael > ________________________________________________________________ > > On 4 Nov 2010, at 15:03, Bruns, Christopher wrote: > >> I am a new ImageJ user. I recently wrote a plugin that prints the >> intensity value of each pixel over the pixel at higher zoom >> levels. When using this plugin, users want to zoom in more than >> 3200%. Another 2 or 3 levels of zoom would probably be adequate. >> >> Is there a way to enable additional deeper zoom levels to ImageJ? >> Thanks in advance. >> >> Christopher Bruns |
Hi Christopher,
There are several places where the maximum zoom level is hardcoded in ImageCanvas. setMagnification, getLowerZoomLevel, getHigherZoomLevel and zoomIn. You can try to override these methods, essentially using copies that use the maximum of your choice. You can't override the static zoomLevels class variable (it is final), so you would have to use a variable with a different name for the zoom levels of your choice in the new getLowerZoomLevel and getHigherZoomLevel methods. Your plugin sounds very interesting; it would be nice if you could publish it (e.g. on the documentation wiki, http://imagejdocu.tudor.lu) Michael ________________________________________________________________ On 4 Nov 2010, at 17:21, Bruns, Christopher wrote: > On 11/4/10 11:03 AM, "Michael Schmid" <[hidden email]> wrote: > [...] >> you could add the pixel values as an overlay with a very small font >> size, but I fear that this will make ImageJ react rather slowly - at >> least for large images. > > Thank you Michael for your informative response. > > Yes. My first version of the plugin was slow until I modified it > to only > produce the overlay for pixels that are actually displayed. Now the > performance is excellent. My desire for greater zoom levels is > precisely to > avoid always having to use a "very small font". I want something > easier on > the eyes. > >> Magnifications>32 would need a modification of the ImageCanvas class. > > It so happens that my plugin already creates a derived class from > ImageCanvas. Do you think I might be able to implement enhanced > zooming > from there? If so, can you give me some hints about what changes > might be > required? > > Christopher > > [...] >> Michael >> ________________________________________________________________ >> >> On 4 Nov 2010, at 15:03, Bruns, Christopher wrote: >> >>> I am a new ImageJ user. I recently wrote a plugin that prints the >>> intensity value of each pixel over the pixel at higher zoom >>> levels. When using this plugin, users want to zoom in more than >>> 3200%. Another 2 or 3 levels of zoom would probably be adequate. >>> >>> Is there a way to enable additional deeper zoom levels to ImageJ? >>> Thanks in advance. >>> >>> Christopher Bruns |
Free forum by Nabble | Edit this page |