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; }