[Insight-developers] itkVTKPolyDataReader.h reads ascii only --- why?

brian avants stnava at gmail.com
Wed Oct 13 17:00:51 EDT 2010


Luis

I think we can add the binary I/O capabilities to these classes, if
it's not done elsewhere, already.   Jeff Duda will probably do this
--- what's the recommended approach, currently, for adding
functionality like this to the toolkit?

agreed that xml support is a bit ambitious.

Brian

On Wed, Oct 13, 2010 at 4:49 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Brian,
>
> This reader was implemented as a helper class for
> other initiatives.
>
> Managing only ASCII was the first easy way to get
> it done.
>
> Binary just need to be added to its capabilities.
>
>
> Would you be interested in modifying the class
> and adding the Binary reading capability ?
>
>
> -
>
> The support for XML is a more difficult proposition.
> The implementation in VTK relies on a hierarchy
> of helper classes.  It can certainly be done in ITK
> but it will require several weeks of effort.
>
>
> I would suggest to deal only with the Binary
> reading capability initially.
>
>
>      Luis
>
>
> ----------------------------------------------------------------
> On Wed, Oct 13, 2010 at 2:38 PM, brian avants <stnava at gmail.com> wrote:
>>
>> Hi Everyone
>>
>> I updated git-itk this morning.  Am trying to read a vtk mesh and
>> apply a transformation to it.  I get the error below that says,
>> basically, "File format is BINARY but only ASCII files can be read".
>> Is there a good reason for this limitation?    Is it not true that vtk
>> files can be of type ASCII, binary or xml?   Should all of those be
>> supported?   Should the filter(s) be named
>> itkVTKAsciiPolyDataReader/Writer?    Finally, is anyone working on
>> this or is the solution in the software pipeline?
>>
>> Thanks!
>>
>> Brian
>>
>>
>> Input object: Mesh.vtk
>> Error during Update()
>>
>> itk::ExceptionObject (0x101abc640)
>> Location: "void itk::VTKPolyDataReader<TOutputMesh>::GenerateData()
>> [with TOutputMesh = itk::Mesh<double, 3u,
>> itk::DefaultStaticMeshTraits<double, 3u, 3u, float, float, double> >]"
>> File: /Users/brianavants/code/ITK/Code/IO/itkVTKPolyDataReader.txx
>> Line: 107
>> Description: itk::ERROR: VTKPolyDataReader(0x101abc4b0): Error reading
>> file: WM.vtk
>> File format is BINARY but only ASCII files can be read.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>



-- 
ß®∫∆π


More information about the Insight-developers mailing list