[Insight-users] pointer to image data

barbababa tonimuusimaki at gmail.com
Tue Jul 19 17:24:18 EDT 2011


HI!

I managed to get this work by just putting the pointer to my image data as
the first
argument of the SetImportPointer. Great.
But now i am stuck with the opposite: how to attach the pointer of my image
to the pointer
of the output of some ITK filter.

This produces just empty images:

//this is the pointer to my image
float *image_data  = reinterpret_cast< float*>
(image.get_image_data().get_data());

// input is the output of some ITK filter
image_data  = reinterpret_cast<float *> (input->GetBufferPointer()) ;

Any ideas??!
I tried a whole lot of similar approaches but in vain...

Thanks for any reply!

--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/pointer-to-image-data-tp6596336p6600389.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list