Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: add support for long long pixel types in PyBuffer #2557

Merged
merged 1 commit into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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