<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-07-03 19:57 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>If I'm writing my own custom volume reader, and I have the read data in memory (say as a float*). If I know the data is in the right format/layout, can I somehow pass ownership of that data to the output of the algorithm without incurring a copy?<br><br></div><div>I've been looking at some of the simpler readers that come with VTK, but all of them seems to copy the read data to the output (?).<br></div></div></div></blockquote><div><br></div><div>Looking at vtkImageData, what I would like (I think) is some way of setting the pointer that is returned by vtkImageData::GetScalarPointer.<br><br></div><div>Elvis<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div><div><br></div>Thanks,<br></div>Elvis<br></div>
</blockquote></div><br></div></div>