From ddcc5ee64e3f59b8b35b0c4e12d2f034061774a7 Mon Sep 17 00:00:00 2001 From: Philip A Cook Date: Wed, 27 Jan 2021 00:04:19 -0500 Subject: [PATCH] BUG: ImageMath ExtractComponentFrom3DTensor was writing a tensor instead of a component --- Examples/ImageMath_Templates.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/ImageMath_Templates.hxx b/Examples/ImageMath_Templates.hxx index 16ce7a2ba..afa8024ea 100644 --- a/Examples/ImageMath_Templates.hxx +++ b/Examples/ImageMath_Templates.hxx @@ -6086,7 +6086,7 @@ int TensorFunctions(int argc, char *argv[]) componentImage->SetPixel( ind, pix6[which] ); } - WriteTensorImage( timage, outname.c_str(), false ); + WriteImage( componentImage, outname.c_str() ); return 0; }