[ITK] Data buffer length

Fijoy Vadakkumpadan tofijoy at gmail.com
Wed Oct 26 11:36:57 EDT 2016


Hi all,

What's the easiest way to get the length of the data buffer of an
itk::Image in bytes?

I see that GetBufferPointer() gives me a pointer to the buffer, but I also
need the length of the buffer in bytes. I can calculate this as a product
of image size components and pixel size in bytes, but I'm wondering if that
is the easiest way.

Thanks,
Fijoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161026/d41f06b7/attachment.html>


More information about the Community mailing list