[vtkusers] vtkThreshold

Polly Pui polly_sukting at hotmail.com
Wed Mar 21 03:00:29 EDT 2018


Hi,


Previously, I applied vtkThreshold with ThresholdByUpper and get the data extracted on 3D vtk dataset.

For example, i could get 500 points out of 5000 points after the thresholding with a criterion of 0.085.

        vtkThreshold *thresh = vtkThreshold::New();
thresh->SetInputConnection(meanCurve->GetOutputPort());
thresh->ThresholdByUpper(0.085);
thresh->AllScalarsOff();
thresh->Update();


Now, my question is, how i can do this process in an opposite way.

I want to get the threshold value which the number of the points are within 500-600.

Instead of I am the one who providing the threshold value manually.

//

If meanCurve points 500-600 provide threshold value

If meanCurve points 600-700 provide threshold value

...and so on

//


Thanks.


Best,

Polly



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180321/4970b646/attachment.html>


More information about the vtkusers mailing list