<div dir="ltr"><div><div>Hello Fijoy,<br><br></div>I don't think there is a way to do that without computing the product of the image size by the pixel size. Here is an example where it is done:<br><a href="https://itk.org/pipermail/insight-users/2007-May/022351.html">https://itk.org/pipermail/insight-users/2007-May/022351.html</a><br><br></div>Francois<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 11:36 AM, Fijoy Vadakkumpadan <span dir="ltr"><<a href="mailto:tofijoy@gmail.com" target="_blank">tofijoy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>What's the easiest way to get the length of the data buffer of an itk::Image in bytes?</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Fijoy</div></div>
<br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>