Commit bb7a25da authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot
Browse files

Merge topic '16842-reslice-block-stencil'


 16842: Fix reslice SplitMode, Stencil incompatibility
Acked-by: Kitware Robot's avatarKitware Robot <>
Reviewed-by: Sean McBride's avatarSean McBride <>
Merge-request: !1913
parents bbf9b115 8823c552
......@@ -3191,6 +3191,20 @@ int vtkImageReslice::RequestData(
vtkInformationVector** inputVector,
vtkInformationVector* outputVector)
// Generation of the StencilOutput is incompatible with splitting
// along the x-axis when multithreaded, because of InsertNextExtent()
if (this->GenerateStencilOutput && this->SplitPathLength == 3)
if (this->SplitMode == vtkThreadedImageAlgorithm::BLOCK)
vtkWarningMacro("RequestData: SetSplitModeToBlock() is incompatible "
"with GenerateStencilOutputOn(). Denying any splits "
"along x-axis in order to avoid corrupt stencil!");
// Ensure that x-axis is never split
this->SplitPathLength = 2;
vtkAbstractImageInterpolator *interpolator = this->GetInterpolator();
vtkInformation* info = inputVector[0]->GetInformationObject(0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment