[英]How to get array from ITK image without using loop?
Maybe have a function return a pointer or copy memory to a given pointer.也许让 function 返回一个指针或将 memory 复制到给定的指针。
SimpleITK::Image has a lot of methods that return the pointer as you need: SimpleITK::Image有很多方法可以根据需要返回指针:
https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1Image.html https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1Image.html
you might want: SimpleITK::Image::GetBufferAsVoid()你可能想要: SimpleITK::Image::GetBufferAsVoid()
or other ones...或者其他的...
itk::Image
's GetBufferPointer()
method is probably what you want. itk::Image
的GetBufferPointer()
方法可能就是您想要的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.