Maybe have a function return a pointer or copy memory to a given pointer.
SimpleITK::Image has a lot of methods that return the pointer as you need:
https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1Image.html
you might want: SimpleITK::Image::GetBufferAsVoid()
or other ones...
itk::Image
's GetBufferPointer()
method is probably what you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.