I referenced the term in the vtkImageSlabReslice::SetBlendMode(int) function.
I think this means MinIP / MIP / Average.
Sorry. It seems to be my mistake
The problem was that I used it as a negative number.
Using positive numbers works fine. (Is it correct to use absolute values even if the result is negative?)
My English is not good enough, so I’m not sure if you and I are saying the same thing.
Attach my sample code
double s, total, avg;
for (int i = 0; i < 20; i++) // There are 20 slices in total.
{
if (i > 0)
{
total += abs(slice[i].dot() - s) // Sum the distance between neighboring slices.
}
s = slice[i].dot(); // Signed Distance along Slice Plane Normal
}
avg = total / 19; // use this value
vtkSmartPointer<vtkImageImport> importer = vtkSmartPointer<vtkImageImport>::New();
importer->SetDataSpacing(PixelSpacing[0], PixelSpacing[1], avg);
importer->SetDataOrigin(0, 0, 0);
importer->SetWholeExtent(0, nWidth - 1, 0, nHeight - 1, 0, nCount - 1);
importer->SetDataExtentToWholeExtent();