-
Notifications
You must be signed in to change notification settings - Fork 14
CudaSquareImageFilter #89
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| itk_wrap_include(itkCudaImage.h) | ||
| itk_wrap_include(itkCudaImageToImageFilter.h) | ||
| itk_wrap_include(itkInPlaceImageFilter.h) | ||
|
|
||
| itk_wrap_class("itk::CudaImageToImageFilter" POINTER) | ||
|
|
||
| unique(from_types "D;UC;UL;${WRAP_ITK_SCALAR}") | ||
| unique(to_types "D;UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}") | ||
| UNIQUE(vector_types "${WRAP_ITK_VECTOR_REAL};${WRAP_ITK_COV_VECTOR_REAL}") | ||
|
|
||
| cuda_wrap_image_filter_combinations("${from_types}" "${to_types}" "" "") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? Which filter requires no parent? I think it's better to avoid this parent option and to make it mandatory |
||
| cuda_wrap_image_filter_combinations("${from_types}" "${to_types}" "IP" "itk::InPlaceImageFilter") | ||
|
|
||
| cuda_wrap_vector_combinations("${vector_types}" "" "") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
| cuda_wrap_vector_combinations("${vector_types}" "IP" "itk::InPlaceImageFilter") | ||
|
|
||
| itk_end_wrap_class() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| itk_wrap_include(itkCudaImage.h) | ||
|
|
||
| itk_wrap_class("itk::CudaInPlaceImageFilter" POINTER) | ||
|
|
||
| unique(from_types "D;UC;UL;${WRAP_ITK_SCALAR}") | ||
| unique(to_types "D;UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}") | ||
| UNIQUE(vector_types "${WRAP_ITK_VECTOR_REAL};${WRAP_ITK_COV_VECTOR_REAL}") | ||
|
|
||
| cuda_wrap_image_filter_combinations("${from_types}" "${to_types}" "IP") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
| cuda_wrap_image_filter_combinations("${from_types}" "${to_types}" "IP" "itk::InPlaceImageFilter") | ||
|
|
||
| cuda_wrap_vector_combinations("${vector_types}" "IP") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
| cuda_wrap_vector_combinations("${vector_types}" "IP" "itk::InPlaceImageFilter") | ||
|
|
||
| itk_end_wrap_class() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| itk_wrap_include(itkCudaImage.h) | ||
|
|
||
| itk_wrap_class("itk::CudaSquareImageFilter" POINTER) | ||
|
|
||
| # Restrict wrapping to the scalar types we explicitly instantiate in itkCudaSquareImage.cu | ||
| UNIQUE(types "F;D;UC") | ||
| foreach(t ${types}) | ||
| foreach(d 2 3) | ||
| itk_wrap_template("CI${ITKM_${t}}${d}" "itk::CudaImage<${ITKT_${t}},${d}>") | ||
| endforeach() | ||
| endforeach() | ||
|
|
||
| itk_end_wrap_class() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,10 +2,11 @@ itk_wrap_include(itkCudaImage.h) | |
|
|
||
| itk_wrap_class("itk::ImageSource" POINTER) | ||
|
|
||
| UNIQUE(types "UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}") | ||
| UNIQUE(types "D;UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}") | ||
| foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
| foreach(t ${types}) | ||
| itk_wrap_template("CI${ITKM_${t}}${d}" "itk::CudaImage<${ITKT_${t}}, ${d}>") | ||
| itk_wrap_template("I${ITKM_${t}}${d}" "itk::Image<${ITKT_${t}}, ${d}>") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't it already wrapped by ITK? |
||
| endforeach() | ||
| endforeach() | ||
|
|
||
|
|
@@ -14,6 +15,7 @@ itk_wrap_class("itk::ImageSource" POINTER) | |
| foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
| foreach(vt ${vector_types}) | ||
| itk_wrap_template("CI${ITKM_${vt}${c}}${d}" "itk::CudaImage<${ITKT_${vt}${c}}, ${d}>") | ||
| itk_wrap_template("I${ITKM_${vt}${c}}${d}" "itk::Image<${ITKT_${vt}${c}}, ${d}>") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
| endforeach() | ||
| endforeach() | ||
| endforeach() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| itk_wrap_include(itkCudaImage.h) | ||
| itk_wrap_include(itkInPlaceImageFilter.h) | ||
|
|
||
| itk_wrap_class("itk::InPlaceImageFilter" POINTER) | ||
|
|
||
| unique(from_types "D;UC;UL;${WRAP_ITK_SCALAR}") | ||
| unique(to_types "D;UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}") | ||
| unique(vector_types "${WRAP_ITK_VECTOR_REAL};${WRAP_ITK_COV_VECTOR_REAL}") | ||
|
|
||
| foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
| foreach(from ${from_types}) | ||
| foreach(to ${to_types}) | ||
| itk_wrap_template("I${ITKM_${from}}${d}CI${ITKM_${to}}${d}" | ||
| "itk::Image< ${ITKT_${from}}, ${d} >, itk::CudaImage< ${ITKT_${to}}, ${d} >") | ||
| itk_wrap_template("CI${ITKM_${from}}${d}I${ITKM_${to}}${d}" | ||
| "itk::CudaImage< ${ITKT_${from}}, ${d} >, itk::Image< ${ITKT_${to}}, ${d} >") | ||
| itk_wrap_template("CI${ITKM_${from}}${d}CI${ITKM_${to}}${d}" | ||
| "itk::CudaImage< ${ITKT_${from}}, ${d} >, itk::CudaImage< ${ITKT_${to}}, ${d} >") | ||
| endforeach() | ||
| endforeach() | ||
| foreach(c ${ITK_WRAP_VECTOR_COMPONENTS}) | ||
| foreach(vt ${vector_types}) | ||
| itk_wrap_template("I${ITKM_${vt}${c}}${d}CI${ITKM_${vt}${c}}${d}" | ||
| "itk::Image< ${ITKT_${vt}${c}}, ${d} >, itk::CudaImage< ${ITKT_${vt}${c}}, ${d} >") | ||
| itk_wrap_template("CI${ITKM_${vt}${c}}${d}I${ITKM_${vt}${c}}${d}" | ||
| "itk::CudaImage< ${ITKT_${vt}${c}}, ${d} >, itk::Image< ${ITKT_${vt}${c}}, ${d} >") | ||
| itk_wrap_template("CI${ITKM_${vt}${c}}${d}CI${ITKM_${vt}${c}}${d}" | ||
| "itk::CudaImage< ${ITKT_${vt}${c}}, ${d} >, itk::CudaImage< ${ITKT_${vt}${c}}, ${d} >") | ||
| endforeach() | ||
| endforeach() | ||
| endforeach() | ||
|
|
||
| itk_end_wrap_class() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really combinations from different types as input and output?