Difference between revisions of "Developer Meetings/20120515"

From Slicer Wiki
Jump to: navigation, search
(Created page with 'Attendees: == To discuss == == Conclusion ==')
 
m
Line 2: Line 2:
  
 
== To discuss ==
 
== To discuss ==
 +
 +
* Review recently created issue
 +
* Fix release date for Slicer 4.1.1 and 4.2
 +
 +
<pre>
 +
From Laurent:
 +
 +
Hello,
 +
 +
I've seen Andriy is using vtkMRMLDiffusionWeightedImageNode to store several volumes in his 4D module.
 +
I would like to use it with the same purpose, but with streaming volumes.
 +
 +
The major difference is I don't know number of volumes I will receive. I looked at the vtkMRMLDiffusionWeightedImageNode and, when we call SetNumberOfGradient, it seems, it's reseting BValue array and gradient array.
 +
 +
If I understood it, we use gradient array to store our ImageData.
 +
 +
My first thought has been, when I  receive a volume, increase the value of NumberOfGradients, then, add the new volume in the gradient array.
 +
However, if SetNumberOfGradient is reseting these arrays, this will erase my previous volumes store in it.
 +
 +
I still can copy them before, then SetNumberOfGradient, then put them in the array (with the new size) and add my new volume at the end, but this is not efficient at all (especially when number of volumes is increasing).
 +
 +
Please, could you let me know if I misunderstood something. If not, is there any workaround ?
 +
 +
Thank you.
 +
</pre>
  
 
== Conclusion ==
 
== Conclusion ==

Revision as of 16:12, 15 May 2012

Home < Developer Meetings < 20120515

Attendees:

To discuss

  • Review recently created issue
  • Fix release date for Slicer 4.1.1 and 4.2
From Laurent:

Hello,

I've seen Andriy is using vtkMRMLDiffusionWeightedImageNode to store several volumes in his 4D module.
I would like to use it with the same purpose, but with streaming volumes.

The major difference is I don't know number of volumes I will receive. I looked at the vtkMRMLDiffusionWeightedImageNode and, when we call SetNumberOfGradient, it seems, it's reseting BValue array and gradient array. 

If I understood it, we use gradient array to store our ImageData. 

My first thought has been, when I  receive a volume, increase the value of NumberOfGradients, then, add the new volume in the gradient array.
However, if SetNumberOfGradient is reseting these arrays, this will erase my previous volumes store in it.

I still can copy them before, then SetNumberOfGradient, then put them in the array (with the new size) and add my new volume at the end, but this is not efficient at all (especially when number of volumes is increasing).

Please, could you let me know if I misunderstood something. If not, is there any workaround ?

Thank you.

Conclusion