[Insight-users] pointer to image data
barbababa
tonimuusimaki at gmail.com
Wed Jul 20 16:12:07 EDT 2011
Hi!
I found a solution from GettingStarted-V.pdf !
First i have to allocate my image with the correct size, then get a pointer
to the data: image_data:
Then
filter->GetOutput()->GetPixelContainer()->SetImportPointer(image_data,numberOfPixels,false);
filter->GetOutput()->Allocate();
filter->Update();
And this works perfectly. Hope this helps others with similar problems.
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/pointer-to-image-data-tp6596336p6604152.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list