Do you call stencil->Update() before you pass it to Initialize()?

guoyanmin wrote:
>
> hallo every
> i want your help, i got one vtkImageStencil, want convert this to the
> mitk image, use these code
>
> mitk::Image::Pointer neu_image;
> neu_image->SetSpacing(image->GetTimeSlicedGeometry()->GetGeometry3D(0)->GetSpacing());
> neu_image->SetVolume(stencil->GetOutput()->GetScalarPointer());
> neu_image->Initialize(stencil->GetOutput());
> neu_image->Modified();
>
> there is always the overflow from
> neu_image->Initialize(stencil->GetOutput());
> can anybody tell me some tipps,
>
>
>
>
> ------------------------------------------------------------------------
> “七件武器,七种完美” 立刻体验! <http://get.live.cn>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>   


-- 
----------------------------------------------------------------------
Dr. Ivo Wolf, Dipl.-Phys. Phone: (+49) 6221/42-2327
Deutsches Krebsforschungszentrum Fax: (+49) 6221/42-2345
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280 email: [EMAIL PROTECTED]
D-69120 Heidelberg, Germany http://mbi.dkfz-heidelberg.de
----------------------------------------------------------------------
Confidentiality Note: This message is intended only for the use of the
named
recipient(s) and may obtain confidential and/or privileged information.
If you
are not the intended recipient, please contact the sender and delete the
message.
Any unauthorized use of the information contained in this message is
prohibited.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to