Skip to content

Commit

Permalink
Merge pull request #2557 from dzenanz/pyBufferULL
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz authored May 28, 2021
2 parents 2502192 + ae7079c commit f0431a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Modules/Bridge/NumPy/wrapping/PyBuffer.i.init
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ def _get_numpy_pixelid(itk_Image_type):
"US":np.uint16,
"UI":np.uint32,
"UL":np.uint64,
"ULL":np.uint64,
"SC":np.int8,
"SS":np.int16,
"SI":np.int32,
"SL":np.int64,
"SLL":np.int64,
"F":np.float32,
"D":np.float64,
"PF2":np.float32,
Expand Down
4 changes: 2 additions & 2 deletions Modules/Bridge/NumPy/wrapping/itkPyBuffer.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/PyBuffer.i.init"
"${CMAKE_CURRENT_BINARY_DIR}/PyBuffer.i"
@ONLY)
itk_wrap_class("itk::PyBuffer")
UNIQUE(types "${WRAP_ITK_SCALAR};UC;D;US;UI;UL;SC;SS;SI;SL;F")
UNIQUE(types "${WRAP_ITK_SCALAR};UC;D;US;UI;UL;ULL;SC;SS;SI;SL;SLL;F")
UNIQUE(vector_universe "${WRAP_ITK_VECTOR};VD;CVD")
foreach(t ${types})
string(REGEX MATCHALL "(V${t}|CV${t})" VectorTypes ${vector_universe})
Expand Down Expand Up @@ -89,7 +89,7 @@ itk_end_wrap_class()
# VNL vectors

itk_wrap_class("itk::PyVnl")
UNIQUE(types "${WRAP_ITK_SCALAR};UC;D;US;UI;UL;SC;SS;SI;SL;F")
UNIQUE(types "${WRAP_ITK_SCALAR};UC;D;US;UI;UL;ULL;SC;SS;SI;SL;SLL;F")
foreach(t ${types})
set(PixelType ${t})
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}")
Expand Down

0 comments on commit f0431a1

Please sign in to comment.