[英]How to get array from ITK image without using loop?
也許讓 function 返回一個指針或將 memory 復制到給定的指針。
SimpleITK::Image有很多方法可以根據需要返回指針:
https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1Image.html
你可能想要: SimpleITK::Image::GetBufferAsVoid()
或者其他的...
itk::Image
的GetBufferPointer()
方法可能就是您想要的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.