[Insight-users] How to Use itk libraries in the VC++ MFC

Luis Ibanez luis.ibanez at kitware.com
Wed Oct 24 13:02:25 EDT 2007


Hi Simon,

Please look at the following paper in the Insight Journal

  "How to use ITK and MFC"
  by Yong Su
  http://insight-journal.org/dspace/handle/1926/479


  Regards,


     Luis


---------------
Simon wrote:
> Hello Everyone :
> 	  I want to use the itk libraries in the VC++ MFC,but I don't know how to do ?Does anybody know this please tell me:xs81525 at 126.com .Thanks in advance.
>       simon
> 
> 	
> 
> 
> 
> 
>>Send Insight-users mailing list submissions to
>>	insight-users at itk.org
>>
>>To subscribe or unsubscribe via the World Wide Web, visit
>>	http://www.itk.org/mailman/listinfo/insight-users
>>or, via email, send a message with subject or body 'help' to
>>	insight-users-request at itk.org
>>
>>You can reach the person managing the list at
>>	insight-users-owner at itk.org
>>
>>When replying, please edit your Subject line so it is more specific
>>than "Re: Contents of Insight-users digest..."
>>
>>
>>Today's Topics:
>>
>>  1. Re: About the vesselness filter (rashedk)
>>  2. Re: Events from PointSetToPointSetRegistrationMethod
>>     ( Francisco Jos? Cadaval Arrola )
>>  3. Registration in ITK and visualization in VTK	-	transform
>>     questions (Michael Schildt)
>>  4. how to import the parameter(the filename and	directory)
>>     (james zhang)
>>  5. distances in x-y-z independently (Xabier Artaechevarria Artieda)
>>  6. how to combine the MFC(GUI)+ITK (james zhang)
>>  7. Scienific developer position at CILab - UPF -	Barcelona,
>>     Spain (Nacho Larrabide)
>>  8. Create itk+mfc with CMake (james zhang)
>>
>>
>>----------------------------------------------------------------------
>>
>>Message: 1
>>Date: Wed, 29 Aug 2007 01:12:06 -0700 (PDT)
>>From: rashedk <rashed.vtk at googlemail.com>
>>Subject: Re: [Insight-users] About the vesselness filter
>>To: insight-users at itk.org
>>Message-ID: <12382574.post at talk.nabble.com>
>>Content-Type: text/plain; charset=us-ascii
>>
>>
>>Hey thanks Krishnan. That helps. 
>>
>>
>>
>>Karthik Krishnan-2 wrote:
>>
>>>Rashed:
>>>
>>>I've beefed up the documentation of the filter in CVS . They should appear
>>>in the nightly regenerated doxygen.
>>>
>>>In the meantime, please refer to the following
>>>  http://www.spl.harvard.edu/pages/spl-pre2007/pages/papers/yoshi
>>>
>>>You should find a description of the alpha parameters on equation (4)
>>>
>>>Regards
>>>
>>>-- 
>>>Karthik Krishnan
>>>R&D Engineer,
>>>Kitware Inc.
>>>
>>>On 8/28/07, rashedk <rashed.vtk at googlemail.com> wrote:
>>>
>>>>
>>>>Hi everyone,
>>>>
>>>>I am trying to figure out what parameters alpha1 and alpha2 refer to, in
>>>>the
>>>>vesselness filter example found in:
>>>>Examples/Filtering/VesselnessMeasureImageFilter.cxx
>>>>
>>>>There seems to be no documentation on what these parameters refer to in
>>>>DOxygen either.
>>>>
>>>>Thanks in advance,
>>>>
>>>>Regards,
>>>>Rashed karim
>>>>
>>>>--
>>>>View this message in context:
>>>>http://www.nabble.com/About-the-vesselness-filter-tf4341651.html#a12367658
>>>>Sent from the ITK - Users mailing list archive at Nabble.com.
>>>>
>>>>_______________________________________________
>>>>Insight-users mailing list
>>>>Insight-users at itk.org
>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>>-- 
>>View this message in context: http://www.nabble.com/About-the-vesselness-filter-tf4341651.html#a12382574
>>Sent from the ITK - Users mailing list archive at Nabble.com.
>>
>>
>>
>>------------------------------
>>
>>Message: 2
>>Date: Wed, 29 Aug 2007 09:01:02 +0200
>>From: " Francisco Jos? Cadaval Arrola "	<francadaval at gmail.com>
>>Subject: Re: [Insight-users] Events from
>>	PointSetToPointSetRegistrationMethod
>>To: "Luis Ibanez" <luis.ibanez at kitware.com>
>>Cc: insight-users at itk.org
>>Message-ID:
>>	<4c5d0d7e0708290001h7f221d86h2857bd68fd7bae64 at mail.gmail.com>
>>Content-Type: text/plain; charset=ISO-8859-1
>>
>>Thank you very much.
>>
>>2007/8/28, Luis Ibanez <luis.ibanez at kitware.com>:
>>
>>>Hi Francisco,
>>>
>>>
>>>1) The bad news:
>>>
>>>      No, RegistrationMethod do not invoke IterationEvents
>>>
>>>
>>>2) The good news:
>>>
>>>      Optimizers invoke IterationEvents
>>>
>>>
>>>Just connect an observer to the optimizer that you are using.
>>>
>>>
>>>You will find many examples on how to do this in the
>>>ITK Software Guide
>>>
>>>       http://www.itk.org/ItkSoftwareGuide.pdf
>>>
>>>in particular in the "Image Registration" chapter.
>>>
>>>Source code Examples are in
>>>
>>>      Insight/Examples/Registration
>>>
>>>
>>>
>>>    Regards,
>>>
>>>
>>>       Luis
>>>
>>>
>>>--------------------------------------
>>>Francisco Jos?Cadaval Arrola wrote:
>>>
>>>>Hi all.
>>>>
>>>>I want to know if the objects of this class invokes any event like
>>>>IterationEvent.
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>_______________________________________________
>>>>Insight-users mailing list
>>>>Insight-users at itk.org
>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>------------------------------
>>
>>Message: 3
>>Date: Wed, 29 Aug 2007 10:59:21 +0200
>>From: Michael Schildt <michael.schildt at ifn-magdeburg.de>
>>Subject: [Insight-users] Registration in ITK and visualization in VTK
>>	-	transform questions
>>To: insight-users at itk.org
>>Message-ID: <46D53569.1070601 at ifn-magdeburg.de>
>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>Hello, I wrote this question a cupple of days ago at vtk-userlist, but
>>no answers yet. Maybe someone here can clarify some issues.
>>
>>Best requards,
>>   M. Schildt
>>
>>Michael Schildt schrieb:
>>
>>>Hi!
>>>
>>>Seems nobody is willing or beeing able to answer my questions. In the 
>>>meantime i have read all threads related to "vtk itk transform", the 
>>>VTK book transformsections and in the ITK-Guide too. And it is still 
>>>confusing me. But i present the facts i collected. Maybe someone can 
>>>comment on them, please.
>>>
>>>1) ITK and VTK, both using right-hand coordinate systems ?
>>>2) For ITK the x-axis goes to the left, the y-axis to the top and the 
>>>z-axis to the front ?
>>>3) For VTK the x-axis goes to the left, the y-axis to the bottom and 
>>>the z-axis to the back ?
>>>4) That means a 180?rotation (of the vtkCamera) around the x-axis 
>>>will align both coordinate systems ?
>>>5) in ITK transforms the physical to image space, while vtk transforms 
>>>actor(image) to physical space ?
>>>6) So most of the time, in ITK i use the inverse of the vtk transform, 
>>>and vice versa ?
>>>
>>>Best Requards,
>>>   Michael Schildt
>>>
>>>Michael Schildt schrieb:
>>>
>>>>Hello Everybody!
>>>>
>>>>I want to display the progress of a intermodal 3D registration with 
>>>>an centered affine transform. So every iteration I catch the 
>>>>intermediate transform parameters and want to display them with VTK. 
>>>>It was mentioned often that way but i didn't find any concrete example.
>>>>
>>>>      // get transform parameter in ITK
>>>>     AffineType::InputPointType C = transform->GetCenter();
>>>>     AffineType::MatrixType M = transform->GetMatrix();
>>>>     AffineType::OutputVectorType T = transform->GetTranslation();
>>>>
>>>>I visualize the two datasets via outline filter as suggested in the 
>>>>ITK documentation. But I ren into some issues because of the 
>>>>different coordinate systems ITK(mathematical convetion - origin in 
>>>>the lower left corner) and VTK (graphical convention - origin in the 
>>>>upper left corner) are using:
>>>>
>>>>1. I flipped the y-axis of both images using ITKs flip filter. By 
>>>>that the origin's y coordinate changes too, but that is not intended 
>>>>or is it?
>>>>2. How to convert efficiently between the two coordinate systems for 
>>>>the affine transform - perhaps just inverting the y-axis?
>>>>3. Related to 2. question how to put the data from ITK (center, 
>>>>translation, matrix) into the VTK AffineTransform? I would build a 
>>>>VTK 4x4 Matrix from the ITK 3x3 matrix + transform. But how to 
>>>>integrade the center of rotation and scaling?
>>>>
>>>>At the Moment I set Origin and Translation only:
>>>>
>>>>   // vtk set transform parameter
>>>>   // moving is a vtkActor
>>>>     moving->SetOrigin(C[0],C[1],C[2]);
>>>>     moving->SetPosition(T[0],T[1],T[2]);
>>>>     renderwin->Render();
>>>>
>>>>Greetings,
>>>>   Michael Schildt
>>>>
>>
>>
>>
>>
>>------------------------------
>>
>>Message: 4
>>Date: Wed, 29 Aug 2007 11:25:50 -0300
>>From: james zhang <jameszhang2009 at hotmail.com>
>>Subject: [Insight-users] how to import the parameter(the filename and
>>	directory)
>>To: <insight-users at itk.org>
>>Message-ID: <BAY123-W10D3882D16AD5E5B8C5E85CECC0 at phx.gbl>
>>Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>>hi, 
>>
>>   I have already build the myProject sample with ITK and VTK, with the GettingStarted -II. and when I run the myProject.exe, how can I import the pararmeter (the image name and directory).
>>
>>thank you
>>
>>james
>>_________________________________________________________________
>>Connect to the next generation of MSN Messenger?
>>http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>>-------------- next part --------------
>>An HTML attachment was scrubbed...
>>URL: http://public.kitware.com/pipermail/insight-users/attachments/20070829/b0a03a3a/attachment.html
>>
>>------------------------------
>>
>>Message: 5
>>Date: Wed, 29 Aug 2007 16:48:33 +0200
>>From: Xabier Artaechevarria Artieda <xabiarta at unav.es>
>>Subject: [Insight-users] distances in x-y-z independently
>>To: insight-users at itk.org
>>Message-ID: <20070829164833.9owcz05uw48wog00 at webmail.unav.es>
>>Content-Type: text/plain;	charset=ISO-8859-1;	DelSp="Yes";
>>	format="flowed"
>>
>>Hi all,
>>I am looking for a filter that returns the distance from each pixel to  
>>an object in each axis independently.
>>In other words, for each pixel, it should look at all the pixels with  
>>same X and return the minimum distance in that dimension. The same for  
>>Y and for Z, if the image is 3D.
>>I have looked at DanielssonDistanceMapImageFilter but it returns a  
>>vectorial image with the distance to the closest object point, instead  
>>of considering each dimension independently.
>>Is there any filter that does what I am looking for or should I develop one?
>>Thanks in advance.
>>Best,
>>Xabi
>>
>>-- 
>>Xabier Artaechevarria
>>Cancer Imaging Laboratory
>>Centre for Applied Medical Research
>>www.cima.es
>>
>>
>>
>>
>>
>>
>>----------------------------------------------------------------
>>Este mensaje ha sido enviado desde https://webmail.unav.es
>>
>>
>>
>>------------------------------
>>
>>Message: 6
>>Date: Wed, 29 Aug 2007 12:00:49 -0300
>>From: james zhang <jameszhang2009 at hotmail.com>
>>Subject: [Insight-users] how to combine the MFC(GUI)+ITK
>>To: <insight-users at itk.org>
>>Message-ID: <BAY123-W215686FCD50E8B60B3E35ECECC0 at phx.gbl>
>>Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>>hi, 
>>
>>     I can build GUI with MFC,but I do not know how to combine the ITK, and the use the library function.
>>
>>thank you
>>
>>james
>>_________________________________________________________________
>>News, entertainment and everything you care about at Live.com. Get it now!
>>http://www.live.com/getstarted.aspx
>>-------------- next part --------------
>>An HTML attachment was scrubbed...
>>URL: http://public.kitware.com/pipermail/insight-users/attachments/20070829/efcb2fbd/attachment.htm
>>
>>------------------------------
>>
>>Message: 7
>>Date: Wed, 29 Aug 2007 17:26:13 +0200
>>From: "Nacho Larrabide" <ignacio.larrabide at upf.edu>
>>Subject: [Insight-users] Scienific developer position at CILab - UPF -
>>	Barcelona, Spain
>>To: insight-users at itk.org
>>Message-ID:
>>	<65dccf0e0708290826v1bf0cb2ds6ac85f4ed57412f7 at mail.gmail.com>
>>Content-Type: text/plain; charset="iso-8859-1"
>>
>>Job offer - Scientific developer - CILab
>>
>>Information:
>>
>>The Computational Imaging Lab (CILab, www.cilab.upf.edu) research group is
>>searching for scientific developers for immediate incorporation to
>>participate in different projects with National and European scope between
>>different multinational enterprises, hospitals and universities. These
>>projects consist in the development of software platforms for studying
>>cardiovascular and brain diseases. These platforms include functionalities
>>like:
>>
>>* Biomedical data recollection and integration (images, clinical studies,
>>etc.).
>>* Advanced biomedical data processing (involving image processing,
>>mathematical models and numerical methods, data visualization, etc.).
>>* Information representation for visual analysis.
>>* Integration of the mentioned tools to be used in medicine and scientific
>>environments.
>>
>>Place:
>>CILab - UPF (Universitat Pompeu Fabra), Barcelona , Spain
>>
>>Work hours:
>>Complete (8h)
>>
>>Requisites:
>>
>>The candidate must have:
>>
>>* Graduation in Software engineering or equivalent (undergraduate only if
>>within four months of the end of the course).
>>* Advanced skills in C++ and Object Oriented Programming.
>>* Good knowledge of computer graphics.
>>* Fluently spoken English (as is the standard language in the lab).
>>
>>Candidates with one or more of the following items will be preferred:
>>* Experience with VTK, ITK.
>>* Experience with version control environments (cvs, svn).
>>* Knowledge of configuration management tools (CMake).
>>* Advanced knowledge of development environments in Linux and Windows.
>>* Medical image processing.
>>* High performance computing and parallel processing.
>>* CASE tools and UML.
>>
>>Note: For burocratic matters, priority will be given to European Union
>>citizens.
>>
>>Interested candidates:
>>
>>Please send curriculum vitae to:
>>Ignacio Larrabide, tel. 34 93 542 1348
>>ignacio.larrabide at upf.edu
>>
>>Best regards,
>>
>>-- 
>>Ignacio Larrabide
>>Passeig Circumval·laci?8
>>08003 Barcelona - Spain
>>Tel: +34 93 542 1348
>>Mov: +34 671 710 240
>>
>>mailto:ignacio.larrabide at upf.edu
>>-------------- next part --------------
>>An HTML attachment was scrubbed...
>>URL: http://public.kitware.com/pipermail/insight-users/attachments/20070829/7f6b8c53/attachment.html
>>
>>------------------------------
>>
>>Message: 8
>>Date: Wed, 29 Aug 2007 12:32:41 -0300
>>From: james zhang <jameszhang2009 at hotmail.com>
>>Subject: [Insight-users] Create itk+mfc with CMake
>>To: <insight-users at itk.org>
>>Message-ID: <BAY123-W11C305771725D116BCE639CECC0 at phx.gbl>
>>Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>>h, Andinet
>>
>>   thank your answer about how to create itk+mfc with CMake
>>
>>I create the source codes folder hold the all the file in the ItkRegMFC, and create another the  binary folder and then I run CMake, next is open the itkRegMFC.dsw with visual c++6.0 , finally build all building class. but there is a error: 
>>
>>Configuration: ItkRegMFC - Win32 Debug--------------------Compiling resources...Error spawning rc.exe
>>ALL_BUILD - 1 error(s), 0 warning(s)
>>please help me, this is why?
>>
>>thank you
>>_________________________________________________________________
>>Connect to the next generation of MSN Messenger?
>>http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>>-------------- next part --------------
>>An HTML attachment was scrubbed...
>>URL: http://public.kitware.com/pipermail/insight-users/attachments/20070829/9502f6e9/attachment.htm
>>
>>------------------------------
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>>End of Insight-users Digest, Vol 40, Issue 72
>>*********************************************
> 
> 
> 
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Simon
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡xs81525 at 126.com
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2007-10-24
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list