Tool to add MCM data on Tractography data#83
Conversation
b3f19d7 to
afcf4f4
Compare
Florent2305
left a comment
There was a problem hiding this comment.
Request a test on MSVC
| COMPONENT(DDI) \ | ||
|
|
||
| #define GENERATE_ENUM(ENUM) ENUM, | ||
| #define GENERATE_STRING(STRING) #STRING, |
There was a problem hiding this comment.
We must test this macro on MSVC.
| #include <AnimaMCMBaseExport.h> | ||
| #include <animaMCMConstants.h> | ||
|
|
||
| #define FOREACH_COMPONENT(COMPONENT) \ |
There was a problem hiding this comment.
Macros are in themselves a bit ugly, but in multi lines it's worse.
|
Thanks @Florent2305. This PR should actually not be merged yet. More work is needed following discussions with @jcoloigner who I invite to join the conversation here. I also think we should think of a better more consistent naming convention. Since it is primarily related to fibers the tool should be name starting with |
|
@Florent2305 it breaks the CI because of, again, an issue in decompressing the Boost archive it downloads. Can you look into it please? @MaheyG @MariePoirierGit @Florent2305 @jcoloigner @ecaruyer : now for each point of each cell of the VTK file (a cell is a streamline for us), the tool outputs:
Parameter names are encoded using Weight names are encoded using Can you all test this and report if not working or if any improvement comes to your mind? Thanks! |
@Florent2305 : About your previous review, I agree but not sure it is related to this PR for which I only added one more tool. About my comment of naming conventions, since we are working on that in the refactoring, I guess here it is no longer a concern. |
|
@Florent2305 @MaheyG @MariePoirierGit @jcoloigner @ecaruyer any comments team? |
|
Hi! I tried I just have a remark regarding the n=0 (i.e. only isotropic compartment) case. It seems that the function failed to add the 'FreeWaterParameter' array to the track. Typically, calling: with It is possible to fix this particular case? |
|
Thanks @MaheyG. Can you please put the data somewhere you can share with me so that I can reproduce locally the issue and provide a fix? |
|
Also adding @adelesavalle to this conversation in case you are willing to test the tool. |
Sure, you can find my data here |
Hello! Regarding MostColinearIndex, it gives the "real" index of the component, but then uses a different index for the parameters/weights of the anisotropic compartments (the 1-indexed one). So you still need the .mcm file in addition to the vtk to map the ID to the correct compartment. Wouldn't it be more logical to:
|
New tool to add an interpolated MCM at each point of a collection of tracts.