Skip to content

Commit

Permalink
vtkImageThreshold API was unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
timhutton committed Jun 9, 2024
1 parent b796899 commit 9e0b753
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/readybase/ImageRD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,7 @@ void ImageRD::AddPhasePlot(vtkRenderer* pRenderer,float scaling,float low,float
thresholdXmin->ReplaceOutOff();
vtkSmartPointer<vtkImageThreshold> thresholdXmax = vtkSmartPointer<vtkImageThreshold>::New();
thresholdXmax->SetInputConnection(thresholdXmin->GetOutputPort());
thresholdXmax->SetUpperThreshold(maxVal);
thresholdXmax->SetThresholdFunction(vtkThreshold::THRESHOLD_UPPER);
thresholdXmax->ThresholdByUpper(maxVal);
thresholdXmax->ReplaceInOn();
thresholdXmax->SetInValue(maxVal);
thresholdXmax->ReplaceOutOff();
Expand All @@ -1125,8 +1124,7 @@ void ImageRD::AddPhasePlot(vtkRenderer* pRenderer,float scaling,float low,float
thresholdYmin->ReplaceOutOff();
vtkSmartPointer<vtkImageThreshold> thresholdYmax = vtkSmartPointer<vtkImageThreshold>::New();
thresholdYmax->SetInputConnection(thresholdYmin->GetOutputPort());
thresholdYmax->SetUpperThreshold(maxVal);
thresholdYmax->SetThresholdFunction(vtkThreshold::THRESHOLD_UPPER);
thresholdYmax->ThresholdByUpper(maxVal);
thresholdYmax->ReplaceInOn();
thresholdYmax->SetInValue(maxVal);
thresholdYmax->ReplaceOutOff();
Expand Down Expand Up @@ -1154,8 +1152,7 @@ void ImageRD::AddPhasePlot(vtkRenderer* pRenderer,float scaling,float low,float
thresholdZmin->ReplaceOutOff();
vtkSmartPointer<vtkImageThreshold> thresholdZmax = vtkSmartPointer<vtkImageThreshold>::New();
thresholdZmax->SetInputConnection(thresholdZmin->GetOutputPort());
thresholdZmax->SetUpperThreshold(maxVal);
thresholdZmax->SetThresholdFunction(vtkThreshold::THRESHOLD_UPPER);
thresholdZmax->ThresholdByUpper(maxVal);
thresholdZmax->ReplaceInOn();
thresholdZmax->SetInValue(maxVal);
thresholdZmax->ReplaceOutOff();
Expand Down

0 comments on commit 9e0b753

Please sign in to comment.