<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I two irregular contours (polylines) and I would like to determine the "mean place" between them.<div>Probably the "easiest" way to do it is to start by computing the mean place for each contour, independently.</div><div>So now my problem is: having a set of points, how to compute the mean geometric plane, ie the plane minimizing square distances of points to itself.</div><div>Actually I just need 2 vectors lying on the place, from which it would be easy to define a new space.</div><div>I did not find such a method in VTK (I am writing a plugin so I just need a VTK method, not a PV filter) but I suspect that the plane vectors could be extracted from the result of <span style="background-color: rgb(213, 225, 232); font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; font-weight: bold; white-space: nowrap; "> vtkPCAAnalysisFilter::GetParameterisedShape()</span><span style="font-size: 10pt; "> or </span><span style="background-color: rgb(213, 225, 232); font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; font-weight: bold; white-space: nowrap; ">vtkPCAAnalysisFilter::GetShapeParameters()</span><span style="font-size: 10pt; ">.</span></div><div>Am I wrong?</div><div>Any suggestion for my problem?</div><div><br></div> </div></body>
</html>