1.51CTO详解:http://book.51cto.com/art/201504/474122.htm
2.demo地址:
https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageThreshold/
关键代码:
vtkSmartPointer<vtkImageThreshold> imageThreshold =
vtkSmartPointer<vtkImageThreshold>::New();
imageThreshold->SetInputConnection(imageSource->GetOutputPort());
unsigned char lower = 100;
unsigned char upper = 200;
imageThreshold->ThresholdBetween(lower, upper);
imageThreshold->ReplaceInOn();
imageThreshold->SetInValue(255);
imageThreshold->Update();