From d43f094c4fcf3cde2a3bd59fd923b6bdb3647dd5 Mon Sep 17 00:00:00 2001 From: ncullen93 Date: Fri, 21 Jul 2017 14:29:09 -0400 Subject: [PATCH] fix bug in itk.GetVnlMatrixFromArray --- Wrapping/Generators/Python/itkExtras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wrapping/Generators/Python/itkExtras.py b/Wrapping/Generators/Python/itkExtras.py index a29b19596dc..24cc2da4d08 100644 --- a/Wrapping/Generators/Python/itkExtras.py +++ b/Wrapping/Generators/Python/itkExtras.py @@ -325,7 +325,7 @@ def _GetVnlObjectFromArray(arr, function): import itk PixelType = _get_itk_pixelid(arr) templatedFunction = getattr(itk.PyVnl[PixelType], function) - return templatedFunction(vnlObject) + return templatedFunction(arr) def GetVnlVectorFromArray(arr): """Get a vnl vector from a Python array.