thank you roman, i would it today, if i have some other question, i would ask 
you.


 
Guo,Yanmin
Darmstadt  Deutschland
Phone(handy):0179-4820889
 

> Date: Wed, 6 Aug 2008 12:09:49 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [mitk-users] problem about the surface and image
> 
> So you mean, the proper part of the Image is cut, but you wish it to be
> positioned somewhere else. For example in the middle of the old Image?
> 
> If I understood you right, I would propose:
> 
> Be it geometry_old - the geometry of the old image and geometry_new -
> the geometry of the new image.
> 
> Determine the center of the old image with "GetCenter()" from
> geometry_old. It is in "mm" => World coordinates.
> With "GetExtentInMM (int direction) / -2.0" from geometry_new you can
> determine the translational displacement in each needed direction.
> Then determine the offset for the new image as a sum of the prior
> calculated center and displacement.
> Now you can translate the new image with SetOrigin("offset") from
> geometry_new.
> 
> But do not forget to call Modified() and Update() for the new image.
> Otherwise the changes will likely not be visible
> 
> Regards,
> Roman
> 
> guoyanmin wrote:
> > hallo everyone, i have one question long times.
> > now i want to use the surface to cut one image, i load the surface and
> > image, for example this surface stay upper-left of image, i move this
> > surface to the center of image, and cut this image, but this part of
> > cut image is showed only upper-left position, that means, only in the
> > position, where i load the surface.
> > anybody can tell me, how i can put this cut image in the center of
> > image, but not in the upper-left position.
> >
> > best regards
> >
> >
> > ------------------------------------------------------------------------
> > 使用新一代 Windows Live Messenger 轻松交流和共享! 立即体验!
> > <http://messenger.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
> >   
> 
> 

_________________________________________________________________
用手机MSN聊天写邮件看空间,无限沟通,分享精彩!
http://mobile.msn.com.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

Reply via email to