Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lineprofile plugin misbehaves with CollectionViewer from skimage.viewer #2310

Closed
pskeshu opened this issue Sep 19, 2016 · 2 comments
Closed

Comments

@pskeshu
Copy link
Contributor

pskeshu commented Sep 19, 2016

Description

To view multiple image stacks, especially microscope z stack images, CollectionViewer is very useful, as there's a slider which is makes it easy to navigate through the z stack of images.

There's a neat handy plugin to draw a line and get the intensity values along the line in skimage.viewer.plugins called lineprofile.

When used with CollectionViewer, the lineprofile shows the profile for a selected region, however, as I move through the different frames in CollectionViewer, the plot that shows the lineprofile data remains unchanged. It doesn't appear to adapt to the new frame on top of which the lines lies as the image shown by the CollectionViewer is changed.

Test code:

def show_collection(images):
    from skimage.viewer import CollectionViewer
    new_viewer = viewer.CollectionViewer(images)
    from skimage.viewer.plugins import lineprofile
    new_viewer += lineprofile.LineProfile()
    new_viewer.show()

Pass any grey-scale image stack to the show_collection() to test this.

OS and software version:

Linux darwin 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 

GNU/LinuxPython 2.7.12 (default, Jun 28 2016, 08:31:05) 
[GCC 6.1.1 20160602] on linux2

>>> skimage.__version__
'0.13dev'
@jni
Copy link
Member

jni commented Oct 21, 2016

@pskeshu I'm not sure this is unexpected behaviour... Unfortunately the viewer is a rather neglected part of the code base. Do other plugins update correctly when you do this?

My guess is that you need to somehow hook up the lineprofile call to the slider...

@mkcor
Copy link
Member

mkcor commented Jan 6, 2022

Dear @pskeshu,

I'll close this issue since we have now removed the viewer module (#6160).

We recommend that you use other libraries, which specialize in viewing multi-dimensional images interactively, such as Napari: https://github.com/Napari/napari

All the best,
Marianne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants