[vtkusers] Fixing vtkPolyDataToImageStencil

David Gobbi david.gobbi at gmail.com
Mon Jan 5 10:00:26 EST 2015


Hi Roman,

Do the attached images match the artifacts that you see?  The output
of vtkPolyDataToImageStencil is binary (each voxel is "on" or "off"), so
it is impossible for it, on its own, to produce different shades of grey.

What filters are you using downstream of vtkPolyDataToImageStencil?

 - David


On Mon, Jan 5, 2015 at 7:33 AM, Dr. Roman Grothausmann <
grothausmann.roman at mh-hannover.de> wrote:

> Hi David,
>
> On 05/01/15 15:20, David Gobbi wrote:
> > The .mha file that you attached is giving me an error:
> >
> >    MetaImage: M_ReadElementsData: data not read completely
> >       ideal = 1316134911 : actual = 87431
>
> Sorry, it was compressed with my MHA plugin for fiji which does not
> recompute CompressedDataSize because ITK happily ignores any mismatches
> except for reporting;-)
> Attached the file compressed with ITK itself (possible because the data is
> less than 4GB, see https://issues.itk.org/jira/browse/ITK-3321).
>
> Just noticed: it also contains artifacts in slices 130 to 142.
>
> Many thanks for looking into this.
> Roman
>
>
>  On Mon, Jan 5, 2015 at 5:55 AM, Dr. Roman Grothausmann
>> <grothausmann.roman at mh-hannover.de <mailto:grothausmann.roman at mh-
>> hannover.de>>
>> wrote:
>>
>>     Hi David,
>>
>>
>>     Many thanks for improving vtkPolyDataToImageStencil. I tested the git
>> branch
>>     on 141229 in conjunction with my Voxelizer plug-in for Blender
>>     (http://www.midasjournal.org/__browse/publication/882
>>     <http://www.midasjournal.org/browse/publication/882>) and I still
>> get some
>>     artifacts in the result (see first two slices of attached MHA) with
>> e.g. an
>>     icosahedron (scale set to 100) as found in the attachment. Is that
>> related
>>     to the bugs of vtkPolyDataToImageStencil?
>>
>>     Kind regards,
>>     Roman
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150105/88f67faf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icosahedron_artifact.png
Type: image/png
Size: 2280 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150105/88f67faf/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icosahedron_artifact_2.png
Type: image/png
Size: 25974 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150105/88f67faf/attachment-0001.png>


More information about the vtkusers mailing list