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

Merge topic '16842-reslice-block-stencil'

8823c552 16842: Fix reslice SplitMode, Stencil incompatibility
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Sean McBride's avatarSean McBride <sean@rogue-research.com>
Merge-request: !1913
parents bbf9b115 8823c552
Pipeline #25180 created with stage
......@@ -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);
interpolator->Initialize(info->Get(vtkDataObject::DATA_OBJECT()));
......
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