-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add plotting support for ROIs (Shapes) and Points #14
Comments
Ideas for the open Questions:
I would suggest at the top or bottom of the plotter for easy and fast access. I think this might be used more often then other options.
I think the approach to directly link the modes to specific layers makes the coding a lot simpler. If we allow multiple Shapes / Points layers it might be an option to ditch the In the future napari might add a working layer linking or hierarchy then a rework of the general selection approach might be a good idea and Shapes and Points layers directly linked to layers might be an option. |
I pushed a version with working Shape and Point layer plotting. Both are updated automatically after changes. Due to a strange behaviour of the Shapes layer events data a shape newly drawn has to be moved once before the ROI plotting works correctly. @rjlopez2 would you take a look and give feedback? |
Hey thanks. |
Hi Chris, this is looking really nice, many thanks again :) I don't know if you ever tested with t+2d images but I am receiving an error message after drowing a shape when plotting in "shape" mode. this is the way to reproduce the issue:
I did it using the following:
this is the full error message:
I was receiving this message error when you passed the full dim of the image for the mask instead as just the first dimension as I had it before. See more here. when I reverted to the way it was before, it works. You can of course change the logic if you want, but just like it is right now is not working for t-2d images (at least in my hands). I tried similarly to plot and test t-3d images and is not showing this error and seems to do the work just as expected. I can confirm this for the 3 plotting modalities. About the automatic update, thanks, great job! this is very useful feature and it is working just great :) Now, I think it would be anyway good time to assert a test for this kind of situations and also in general for the the I also think is good idea to move at least the plotting option widget element to the main plotter tab since it is quite useful to have it right there at hand. Cheers |
Thanks for testing and happy you like it. Guess I have to take a look at the extraction logic, I thought I tested 2D+t but who knows xD. It's probably just a trivial mix-up... If you know other people with time resolved images it would be nice if you asked them for suggestions. I would like to engage 0.1.0 in the near future but need more feed back on the plugin in general. Best |
I push the changes I made till now. If everything works fine I just have to finish the tests and this might be ready for pull. |
Hey Chris, yes, I just tested, works fine for my dataset and selection layer got locked too cheers |
I noticed some annoying things.
|
Hi Chris, no sure if I could completely followed you on the issues you are mentioning here... |
Hi Ruben, Best, |
Hey Chris, |
Hi, no worries. If you like to support this project in the future feel free to think about more things that might be useful and should be part of the plugin. If you find something just open an issue or a pull request. Best, |
You are very welcome, indeed I am learning a lot by contributing in this very nice project :)
I may think on some other features but from now that's something that just came to my mind while testing it. cheers. Ruben |
I also have been thinking on a potential solution for this:
may be implementing something from the napari-region-pros plugin could help? |
What other functions do you find useful?
This would be really nice but is difficult to realise as it is highly dependant on said metadata. I think an automatic version is not possible with all the ways to load image with and without metadata and no common way of storing said data. The only some what stable solution I can think about would be to use the scaling value of the first axis, but again that is dependant on the way the image was loaded into the viewer.
Yea, I thought about that too. The question is would it be good to add additional dependencies and does it really help. If you like you could explore this. |
I was thinking on min and max and then I thought may be that's all LOL ^^
I was thinking exactly on this and researching a bit if there was some kind of "convention" or standard for napari handeling metadata, but could not find something clear. Probably the quicker and simpler solution would be to implement what you just suggested and just add a field where user can write down fps for instance...
Yes, I feel the same. However at some point I think it will require external dependencies like pandas or some kind of tabular data handler for listing the values? I guess if we try borrow their bare logic to create/export the tables and avoid the rest (reg properties analysis, etc...) would be sufficient? thanks again. Ruben |
Hi @rjlopez2, Cheers, |
Hey Chris,
Beside those, I think it is pretty fine now :) cheers Ruben |
Thanks for the pull request, merged it should be all fine now. I will start a pull request for the branch. |
fair point |
Add functionality to define the data for plotting by either shapes in a Shapes layer or points in a Point layer.
This would result in three different plotting modes: Voxel, Shapes and Points
Features:
Open Questions:
TODO:
The text was updated successfully, but these errors were encountered: