-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
WIP: Adds 3D structure tensor capability #2987
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
WIP: Adds 3D structure tensor capability #2987
Conversation
Hello @scott-trinkle! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on March 19, 2018 at 18:30 Hours UTC |
This is my first time contributing, I'm somewhat new at this - I can't figure out why the Travis CI builds keep failing. The tests are running successfully for me locally. Anyone see any glaring things I'm missing? |
Hi @scott-trinkle! Regarding your Travis failures, you can click through (under Details) to see whether the failure is related to your code or not. In your case it is: I guess you are not running doctests locally, because it is the doctest that is failing: More broadly, thanks for your contribution, but I'm sad to say it needs a lot of refinement. I'd actually gotten started on this (thanks for your earlier issue report!) but was taking long because the "right" way, with proper deprecations, is quite tricky. Here are the goals I have for the structure tensor 3d code:
To satisfy those goals, we need to deprecate the current 2D xy approach in favour of row/column (rc) coordinates. There is a "model" PR for converting Hessian matrix to 3D with unified code implemented here: https://github.com/scikit-image/scikit-image/pull/2194/files and a deprecation of the 2D xy code here: https://github.com/scikit-image/scikit-image/pull/2327/files Essentially this is the path that I want to take with the structure tensor. Feel up to it @scott-trinkle?? Sorry if this is a bit overwhelming, but I am very happy to help you through the process! We can even set up some time to do it "live" on gitter.im/scikit-image/scikit-image. Let me know if you're interested! |
Hi @jni, Thanks so much for your feedback! I've been busy the past few weeks, but I now have some time to pick this up again, I want to give it a shot with your suggestions. A few questions:
I did a fresh clone/install using the developer instructions here. When I run
So I ran
Any idea what could be going on? I see from the MakeFile that the doctest help section says "to run all doctests embedded in the documentation (if enabled)". Is there something I need to do to enable doctest? Thanks again! |
@scott-trinkle sigh unfortunately I don't. imho our test machinery is way too complicated/brittle. Certainly there should be no reason for sphinx to be involved in running doctests. I usually rely on manually reproducing the tests I am directly affecting, and then letting travis do the rest. @stefanv, any suggestions here? As to question 1, I think you are right that the cleanest approach is to start a new PR. Just make sure to refer to this one from the new one. |
Maybe a better place to inquire: any progress on this in the last year? Thank you! L. |
It'd be great to finish this work, I created #4831 to discuss this and related issues with |
Description
Adds
skimage.feature.structure_tensor_3D
andskimage.feature.structure_tensor_3D_eig
, which calculates the 3x3 structure tensor from a 3D image volume, and finds its eigenvalues and eigenvectors, respectively.Checklist
./doc/examples
(new features only)References
Closes Issue #2972
Mathematical description available here
For reviewers
(Don't remove the checklist below.)
later.
__init__.py
.doc/release/release_dev.rst
.