View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003672 | Slicer4 | Core: Diffusion and Tractography (Any modules) | public | 2014-04-25 08:59 | 2017-06-10 08:51 |
Reporter | alexy | Assigned To | nicole | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.4.0 | Fixed in Version | Slicer 4.4.0 | ||
Summary | 0003672: tractography display have multiple issues | ||||
Description | From Lauren O'Donnell: For a 2-tensor dataset Issue 1. Display Wierdness Issue 2. Scalars stored by UKF (WTF) What is the norm? Set it to something useful please. What is the field called 1? Issue 3. Eigenvectors Issue 4. Scalar Range There are two tensors called '1' and '2'. It would be best if the default is the first tensor field -- so somehow the one named '2' is default in slicer in order to calculate FA, etc. which would confuse any clinical user who assumes the thing being shown corresponds to the tensor that was followed. Not sure if this should be done according to a special name, or if there is any way in the file to say which should be active.... | ||||
Tags | No tags attached. | ||||
The same issues are observed for singe tensor tracts |
|
I tracked this issue to the change in the vtkMRMLModelDisplayableManager made by Nicole: |
|
Nicole, your change in vtkMRMLModelDisplayableManager broke the coloring of fibers, see note 0000001 from Lauren above. |
|
I'll look into issues 0000001 and 0000004. |
|
2014-04-29 07:01
|
2_fiber.vtk (5,755 bytes) |
Nicole, you can see the coloring issue on any fiber data 1 or 2 tensors (I uploaded a small 1-tensor dataset). If you switch between different tensor properties the color stays red. If you revert your change the colors are correct. |
|
2014-04-29 07:05
|
glyphs_orig.vtk (2,245,438 bytes) |
Having trouble reproducing various issues:
What steps am I missing? |
|
Nicole you have to load them as fiber bundles. |
|
And go to tractography display under diffusion. |
|
Thanks! Got it now. I don't work with the Slicer tractography functions very much. |
|
This check in should fix the first issue, I checked for fiber bundle display nodes and if present used the old system: For the fourth issue, where is the scalar range not updating? I see it updating in the Models, Display, Scalars, Active Scalar Range label. |
|
This bug report only refers to issues in tractography display. No one uses models display for tracts. Hope this helps. |
|
For the scalar range update problem, are you referring to the Auto W/L section of the advanced display in the tractography display? If not, can you tell me where you're not seeing it update? |
|
If you switch back and forth what is displayed (for example FA then something from the scalars in the vtk file) the W/L and the scalar display will do random strange things. At times only all-red tracts will be displayed. Just try displaying all the options and switching between them for a bit. |
|
After my check in, Julien's update for VTK6 and his fix of breaking my fix, I can't reproduce the all red tracts despite trying all the different scalars, and flipping between them and |
|
It seems that the major regression has been fixed. I still see problems: |
|
Fixed Issue 3 above. |
|
Nicole, back to you with issue 1 above. It has to do with displaying scalars. |
|
Debugging this, wrote some python code to inspect the scalars/chart the arrays: g = getNode('glyphs_orig') pd = g.GetPolyData() |
|
Looks like the problem is in the UpdatePolyDataPipeline method of vtkMRMLFiberBundleDisplayNode and subclasses:
I'll have to make changes to the three subclasses to fix the scalar range calculation. Will post a github link for review. |
|
Also: I get an assert crash when flipping between various scalar options: ASSERT: "d->equal(d->Slider->minimumValue(), d->MinimumSpinBox->value())" in file /Users/nicole/Slicer4-svn/Slicer-build-debug/CTK/Libs/Widgets/ctkRangeWidget.cpp, line 312 Load glyphs_orig.vtk as a fiber bundle Partial stack trace: |
|
Please take a look at these changes and let me know if they make sense: https://github.com/naucoin/Slicer/commit/068c624ac1fe1ffe0c881b006caf6bfc665f9535 |
|
Reminder sent to: alexy Let me know if you think my proposed changes to the display nodes make sense. |
|
Alex - please review and update the bug report. |
|
Sorry, was traveling last week. Looks good to me. |
|
Fix for the scalar range on the tracts checked in as svn 23324: I think that fixes all but the crash that I found, will make that another bug report and assign to Alex. |
|
Closing resolved issues that have not been updated in more than 3 months. |
|
Import 2017-06-07 23:51:09: master d0bffb09 2014-05-02 17:10:43 naucoin Details Diff |
BUG: fix fiber bundle color display Check for fiber bundle display nodes and use the old method, igoring the new scalar range options for models. Fixes bug introduced with issue 0003573 in svn revision 23083 Issue 0003672 git-svn-id: http://svn.slicer.org/Slicer4/trunk@23118 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx | Diff File | ||
Import 2017-06-07 23:51:09: master 1ac16a45 2014-06-10 15:31:35 naucoin Details Diff |
BUG: calculate range of active scalar Getting the scalar range on the poly data was returning an incorrect tuple. Get the range of the active scalar array instead. Issue 0003672 git-svn-id: http://svn.slicer.org/Slicer4/trunk@23324 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Modules/Loadable/TractographyDisplay/MRML/vtkMRMLFiberBundleGlyphDisplayNode.cxx | Diff File | ||
mod - Modules/Loadable/TractographyDisplay/MRML/vtkMRMLFiberBundleLineDisplayNode.cxx | Diff File | ||
mod - Modules/Loadable/TractographyDisplay/MRML/vtkMRMLFiberBundleTubeDisplayNode.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-04-25 08:59 | alexy | New Issue | |
2014-04-25 08:59 | alexy | Status | new => assigned |
2014-04-25 08:59 | alexy | Assigned To | => alexy |
2014-04-25 09:02 | alexy | Target Version | => Slicer 4.4.0 |
2014-04-26 09:33 | alexy | Note Added: 0011672 | |
2014-04-29 06:50 | alexy | Note Added: 0011675 | |
2014-04-29 06:53 | alexy | Note Added: 0011676 | |
2014-04-29 06:53 | alexy | Assigned To | alexy => nicole |
2014-04-29 06:57 | nicole | Note Added: 0011677 | |
2014-04-29 07:01 | alexy | File Added: 2_fiber.vtk | |
2014-04-29 07:05 | alexy | Note Added: 0011678 | |
2014-04-29 07:05 | alexy | File Added: glyphs_orig.vtk | |
2014-05-02 07:56 | nicole | Note Added: 0011687 | |
2014-05-02 07:57 | nicole | Note Edited: 0011687 | |
2014-05-02 08:01 | lauren | Note Added: 0011688 | |
2014-05-02 08:02 | lauren | Note Added: 0011689 | |
2014-05-02 08:48 | nicole | Note Added: 0011691 | |
2014-05-02 13:16 | nicole | Note Added: 0011692 | |
2014-05-02 17:20 | lauren | Note Added: 0011693 | |
2014-05-05 11:43 | nicole | Note Added: 0011694 | |
2014-05-05 11:52 | lauren | Note Added: 0011695 | |
2014-05-05 12:06 | nicole | Assigned To | nicole => alexy |
2014-05-05 12:11 | nicole | Note Added: 0011697 | |
2014-05-09 08:43 | alexy | Note Added: 0011713 | |
2014-05-09 11:24 | alexy | Note Added: 0011714 | |
2014-05-09 12:14 | alexy | Note Added: 0011715 | |
2014-05-09 12:14 | alexy | Assigned To | alexy => nicole |
2014-05-13 13:17 | nicole | Note Added: 0011819 | |
2014-05-16 12:24 | nicole | Note Added: 0011873 | |
2014-05-16 12:50 | nicole | Note Added: 0011875 | |
2014-05-16 13:58 | nicole | Note Added: 0011880 | |
2014-05-16 13:58 | nicole | Status | assigned => feedback |
2014-05-20 11:43 | nicole | Note Added: 0011926 | |
2014-05-20 11:45 | nicole | Note Edited: 0011926 | |
2014-06-03 10:35 | nicole | Status | feedback => assigned |
2014-06-03 10:35 | nicole | Assigned To | nicole => alexy |
2014-06-03 10:37 | pieper | Note Added: 0012002 | |
2014-06-10 06:41 | alexy | Note Added: 0012041 | |
2014-06-10 06:41 | alexy | Assigned To | alexy => nicole |
2014-06-10 11:42 | nicole | Note Added: 0012046 | |
2014-06-10 11:42 | nicole | Status | assigned => resolved |
2014-06-10 11:42 | nicole | Fixed in Version | => Slicer 4.4.0 |
2014-06-10 11:42 | nicole | Resolution | open => fixed |
2014-06-10 11:50 | nicole | Relationship added | related to 0003734 |
2014-09-17 22:59 | jcfr | Status | resolved => closed |
2014-09-17 23:01 | jcfr | Note Added: 0012530 | |
2015-11-30 17:50 | jcfr | Category | Module TractographyDisplay => Module: Any Tractography modules |
2016-02-29 14:04 | jcfr | Category | Module Tractography (any modules) => Core: Diffusion & Tractography |
2016-02-29 14:05 | jcfr | Category | Core: Diffusion & Tractography => Core: Diffusion & Tractography (Any modules) |
2016-06-20 14:14 | jcfr | Category | Core: Diffusion & Tractography (Any modules) => Core: Diffusion and Tractography (Any modules) |
2017-06-10 08:51 | Changeset attached | => Slicer master 1ac16a45 | |
2017-06-10 08:51 | Changeset attached | => Slicer master d0bffb09 |