[vtk-developers] Interesting imaging pipeline information bug

Berk Geveci berk.geveci at kitware.com
Thu Jan 21 12:50:34 EST 2016


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.

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.

Best,
-berk


On Thu, Jan 21, 2016 at 12:29 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi All,
>
> I was looking through the bugtracker this morning (I know, I shouldn't do
> that :-)
> and found an interesting one:
>
>   http://www.vtk.org/Bug/view.php?id=15901
>
> Basic issue is that most VTK image algorithms do this:
>
>   double spacing[3], origin[3];
>   inputInfo->Get(vtkDataObject::ORIGIN(), origin);
>   inputInfo->Get(vtkDataObject::SPACING(), spacing);
>
> This seems to have worked fine in VTK 5, but in VTK 6, is there any
> guarantee
> that the pipeline will have ORIGIN and SPACING for vtkImageData?
>
>  - David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160121/afab1094/attachment.html>


More information about the vtk-developers mailing list