<div dir="ltr">Interesting. This probably sort-of worked previously because the pipeline called vtkImageData::CopyInformationToPipeline() at some point. I am saying sort-of because the pipeline could still have the wrong information at certain stages. In theory, these keys are supposed to be available during RequestInformation(). Otherwise, one can simply used origin and spacing from vtkImageData. The only way for these to be there during RequestInformation() is if the source/filters provided it. So if the source didn't provide it, you would end up with default values during RequestInformation and correct but redundant data during RequestData.<div><br></div><div>Since the pipeline only very partially supports these, I would like to get rid of them OR make them optional. Optional being that filters should check for their existence and not assume they will be always available.</div><div><br></div><div>Best,</div><div>-berk</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 12:29 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I was looking through the bugtracker this morning (I know, I shouldn't do that :-)</div><div>and found an interesting one:</div><div><br></div>  <a href="http://www.vtk.org/Bug/view.php?id=15901" target="_blank">http://www.vtk.org/Bug/view.php?id=15901</a><br><div><br></div><div>Basic issue is that most VTK image algorithms do this:</div><div><br></div><div>  double spacing[3], origin[3];<br></div><div>  inputInfo->Get(vtkDataObject::ORIGIN(), origin);</div><div>  inputInfo->Get(vtkDataObject::SPACING(), spacing);</div><div><br></div><div>This seems to have worked fine in VTK 5, but in VTK 6, is there any guarantee</div><div>that the pipeline will have ORIGIN and SPACING for vtkImageData?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>