[vtkusers] similarity measure
imho
imho at bephp.com
Tue Jul 29 11:40:42 EDT 2003
Hi Mathieu,
I don't understand, I have a problem exporting to Open Inventor format.
I have a memory error on execute doing this :
-------------------------------------------------------
void sourceControlVTK::writeIvModel(int i)
{
ivWriter->SetFileName(ivFile[i]->latin1());
if (i==0)
ivWriter->SetInput(poly[0]);
else
ivWriter->SetInput(polyLive);
ivWriter->SetFileType(2);
ivWriter->Write();
}
------------------------------------------------------
but this works fine :
------------------------------------------------------
void sourceControlVTK::writePoly(int i)
{
polyWriter->SetInput(poly[i]);
polyWriter->SetFileName(polyFile[i]->latin1());
polyWriter->SetFileType(2);
polyWriter->Write();
}
-------------------------------------------------------
with
-------------
polyWriter = vtkPolyDataWriter::New();
ivWriter = vtkIVWriter::New();
poly[0] = vtkPolyData::New();
poly[1] = vtkPolyData::New();
polyLive = vtkPolyData::New();
polyFile[0] = new QString();
polyFile[1] = new QString();
ivFile[0] = new QString();
ivFile[1] = new QString();
polyFile[0]->insert(0, *dir);
polyFile[0]->insert(polyFile[0]->length(), "0.vtk");
polyFile[1]->insert(0, *dir);
polyFile[1]->insert(polyFile[1]->length(), "1.vtk");
ivFile[0]->insert(0, *dir);
ivFile[0]->insert(ivFile[0]->length(), "0.iv");
ivFile[1]->insert(0, *dir);
ivFile[1]->insert(ivFile[1]->length(), "live.iv");
--------------
poly[0] and polyLive are initialised and visualised with VTK.
I can save and open the .vtk without any problem
does my polyData need to have some type of specified structure to be
exported to Open Inventor?
thanks
Mathieu Malaterre wrote:
> imho,
>
> You can try:
>
> http://mesh.epfl.ch/
>
> You need to export your VTK polydata into another file format such as
> Open Inventor (.iv).
>
> HTH
> mathieu
>
> imho wrote:
>
>> Hi Stephan,
>> my software also use VTK and ITK, but I have some problem to send
>> polyData between them.
>> So I do point-based and ICP registration in VTK, and would like to
>> quantify how it has worked.
>>
>> imho
>>
>>
>> Stephan Moser wrote:
>>
>>> There is a whole bunch within ITK (Insight tool kit, www.itk.org).
>>> There
>>> are
>>> interfaces to ITK and back, but ITK is rapidly being developed and
>>> follows a quite differenc philosophy compared to VTK. I am working on a
>>> software involving both ITK and VTK.
>>>
>>> Within ITK there are e.g. mean quares metric, mutual information metric
>>> and others. They are mainly used for medial image registration and the
>>> like.
>>>
>>> Stephan
>>>
>>>
>>> On Sun, 27 Jul 2003, imho wrote:
>>>
>>>
>>>
>>>> Hi all,
>>>> is there any class who can compute a similarity measure between two
>>>> vtkImageData or vtkPolyData ?
>>>>
>>>> Thanks
>>>>
>>>>
>>>> _______________________________________________
>>>> This is the private VTK discussion list.
>>>> Please keep messages on-topic. Check the FAQ at:
>>>> <http://public.kitware.com/cgi-bin/vtkfaq>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>
>
More information about the vtkusers
mailing list