<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Previously, I applied vtkThreshold with ThresholdByUpper and get the data extracted on 3D vtk dataset.</p>
<p style="margin-top:0;margin-bottom:0">For example, i could get 500 points out of 5000 points after the thresholding with a criterion of 0.085.</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>        vtkThreshold *thresh = vtkThreshold::New();</div>
<div><span style="white-space:pre"></span>thresh->SetInputConnection(meanCurve->GetOutputPort());</div>
<div><span style="white-space:pre"></span>thresh->ThresholdByUpper(0.085);</div>
<div><span style="white-space:pre"></span>thresh->AllScalarsOff();</div>
<div><span style="white-space:pre"></span>thresh->Update();</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Now, my question is, how i can do this process in an opposite way.</p>
<p style="margin-top:0;margin-bottom:0">I want to get the threshold value which the number of the points are within 500-600. </p>
<p style="margin-top:0;margin-bottom:0">Instead of I am the one who providing the threshold value manually.</p>
<p style="margin-top:0;margin-bottom:0">//</p>
<p style="margin-top:0;margin-bottom:0">If meanCurve points 500-600 provide threshold value</p>
<p style="margin-top:0;margin-bottom:0">If meanCurve points 600-700 provide threshold value</p>
<p style="margin-top:0;margin-bottom:0">...and so on</p>
<p style="margin-top:0;margin-bottom:0">//</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best, </p>
<p style="margin-top:0;margin-bottom:0">Polly</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
</body>
</html>