[ITK] [ITK-users] How to analyse the time taken by each module? and use of ELASTIX in ITK !?!

Hyun Jae Kang hyunjae.kang at kitware.com
Fri Jan 15 11:55:06 EST 2016


Hi,

Here are other examples of itk::TimeProbe:

https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/test/itkTimeProbeTest.cxx

https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/test/itkTimeProbeTest2.cxx


Also, You can measure computation times of multiple functions by using
itk::TimeProbesCollectorBase.
Please check the above third example code.

https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/test/itkTimeProbesTest.cxx

Thanks,

Hyun Jae


On Fri, Jan 15, 2016 at 11:04 AM, <community-request at itk.org> wrote:

> Send Community mailing list submissions to
>         community at itk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://public.kitware.com/mailman/listinfo/community
> or, via email, send a message with subject or body 'help' to
>         community-request at itk.org
>
> You can reach the person managing the list at
>         community-owner at itk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Community digest..."
>
>
> Today's Topics:
>
>    1. [ITK-users] How to analyse the time taken by each module? and
>       use of ELASTIX in ITK !?! (vishal)
>    2. Re: [ITK-users] How to analyse the time taken by each module?
>       and use of ELASTIX in ITK !?! (D?enan Zuki?)
>    3. Re: [ITK-users] How to analyse the time taken by each module?
>       and use of ELASTIX in ITK !?! (Matt McCormick)
>    4. Re: [ITK-users]  Texture analysis - two basics questions
>       (Yohann Tschudi)
>    5. Re: [ITK-users]  Texture analysis - two basics questions
>       (D?enan Zuki?)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Jan 2016 01:28:26 -0700 (MST)
> From: vishal <itkhelpacc at gmail.com>
> To: insight-users at itk.org
> Subject: [ITK] [ITK-users] How to analyse the time taken by each
>         module? and use of ELASTIX in ITK !?!
> Message-ID: <1452846506007-36650.post at n7.nabble.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
> I have three question:
>
> [1] I working on a registration algorithm that takes half an hour to
> converge... I want to optimize my code.. so I need to no which module takes
> the most computation time.. is there any method to do this?
>
> [2] after analysing the code is it possible to convert the CPU based module
> to GPU based module? Can any one guide to do that?
>
> [3] I came across this software called ELASTIX.. wherein there are many ITK
> modules written to run on GPU.. is it possible for me to include these
> modules into my code directly??
>
> any suggestion is appreciated...
> thank you
>
> Regards
> Vishal
>
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/How-to-analyse-the-time-taken-by-each-module-and-use-of-ELASTIX-in-ITK-tp36650.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 Jan 2016 08:47:25 -0500
> From: D?enan Zuki? <dzenanz at gmail.com>
> To: vishal <itkhelpacc at gmail.com>
> Cc: Insight-users <insight-users at itk.org>
> Subject: Re: [ITK] [ITK-users] How to analyse the time taken by each
>         module? and use of ELASTIX in ITK !?!
> Message-ID:
>         <
> CAPf2UMQ0ecd7y7Eyy_-Q16OO7uWnPahjJSD5DJbHKwYMCP0nCQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Vishal,
>
> finding out how much time each which function takes is called code
> profiling. VisualStudio, Xcode and valgrind can do it.
>
> You can offload the heaviest computation to GPU. And the exact problem with
> GPU is that programming GPUs is cumbersome. Demons
> <
> http://www.itk.org/Doxygen/html/classitk_1_1GPUDemonsRegistrationFilter.html
> >
> algorithm is already implemented for the GPU, you can take a look at how it
> is done.
>
> Do you have a link to this Elastix?
>
> Regards,
> D?enan
>
> On Fri, Jan 15, 2016 at 3:28 AM, vishal <itkhelpacc at gmail.com> wrote:
>
> > Hi,
> > I have three question:
> >
> > [1] I working on a registration algorithm that takes half an hour to
> > converge... I want to optimize my code.. so I need to no which module
> takes
> > the most computation time.. is there any method to do this?
> >
> > [2] after analysing the code is it possible to convert the CPU based
> module
> > to GPU based module? Can any one guide to do that?
> >
> > [3] I came across this software called ELASTIX.. wherein there are many
> ITK
> > modules written to run on GPU.. is it possible for me to include these
> > modules into my code directly??
> >
> > any suggestion is appreciated...
> > thank you
> >
> > Regards
> > Vishal
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://itk-users.7.n7.nabble.com/How-to-analyse-the-time-taken-by-each-module-and-use-of-ELASTIX-in-ITK-tp36650.html
> > Sent from the ITK - Users mailing list archive at Nabble.com.
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160115/a38e7501/attachment-0001.html
> >
> -------------- next part --------------
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
> ------------------------------
>
> Message: 3
> Date: Fri, 15 Jan 2016 10:46:56 -0500
> From: Matt McCormick <matt.mccormick at kitware.com>
> To: D?enan Zuki? <dzenanz at gmail.com>
> Cc: Insight-users <insight-users at itk.org>
> Subject: Re: [ITK] [ITK-users] How to analyse the time taken by each
>         module? and use of ELASTIX in ITK !?!
> Message-ID:
>         <
> CALzTN-SYdw-6mQYPLq2yRiD1TivB2X3FK1WdFHB3Uvug_vSu6w at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> In addition to profiling tools, which is a good recommendation, ITK
> has cross-platform tools to do more high level timing. Here is an
> example that uses itk::TimeProbe.
>
>
> http://itk.org/ITKExamples/src/Core/Common/ComputeTimeBetweenPoints/Documentation.html
>
> HTH,
> Matt
>
> On Fri, Jan 15, 2016 at 8:47 AM, D?enan Zuki? <dzenanz at gmail.com> wrote:
> > Hi Vishal,
> >
> > finding out how much time each which function takes is called code
> > profiling. VisualStudio, Xcode and valgrind can do it.
> >
> > You can offload the heaviest computation to GPU. And the exact problem
> with
> > GPU is that programming GPUs is cumbersome. Demons algorithm is already
> > implemented for the GPU, you can take a look at how it is done.
> >
> > Do you have a link to this Elastix?
> >
> > Regards,
> > D?enan
> >
> > On Fri, Jan 15, 2016 at 3:28 AM, vishal <itkhelpacc at gmail.com> wrote:
> >>
> >> Hi,
> >> I have three question:
> >>
> >> [1] I working on a registration algorithm that takes half an hour to
> >> converge... I want to optimize my code.. so I need to no which module
> >> takes
> >> the most computation time.. is there any method to do this?
> >>
> >> [2] after analysing the code is it possible to convert the CPU based
> >> module
> >> to GPU based module? Can any one guide to do that?
> >>
> >> [3] I came across this software called ELASTIX.. wherein there are many
> >> ITK
> >> modules written to run on GPU.. is it possible for me to include these
> >> modules into my code directly??
> >>
> >> any suggestion is appreciated...
> >> thank you
> >>
> >> Regards
> >> Vishal
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://itk-users.7.n7.nabble.com/How-to-analyse-the-time-taken-by-each-module-and-use-of-ELASTIX-in-ITK-tp36650.html
> >> Sent from the ITK - Users mailing list archive at Nabble.com.
> >> _____________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Kitware offers ITK Training Courses, for more information visit:
> >> http://www.kitware.com/products/protraining.php
> >>
> >> Please keep messages on-topic and check the ITK FAQ at:
> >> http://www.itk.org/Wiki/ITK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://public.kitware.com/mailman/listinfo/insight-users
> >
> >
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
> ------------------------------
>
> Message: 4
> Date: Fri, 15 Jan 2016 08:52:52 -0700 (MST)
> From: Yohann Tschudi <yxt227 at med.miami.edu>
> To: insight-users at itk.org
> Subject: Re: [ITK] [ITK-users]  Texture analysis - two basics
>         questions
> Message-ID: <1452873172762-7588359.post at n2.nabble.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Here is the final code :
> TextureFeatures.cxx
> <
> http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/TextureFeatures.cxx
> >
> Hope this will be useful for someone.
>
> Some results from prostate:
> Slide13.PNG
> <http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/Slide13.PNG>
> And brain :
> Slide15.PNG
> <http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/Slide15.PNG>
>
>
> Thank you Timothee and Dzenan for your answers.
>
>
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-analysis-two-basics-questions-tp7588334p7588359.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 15 Jan 2016 11:04:22 -0500
> From: D?enan Zuki? <dzenanz at gmail.com>
> To: Yohann Tschudi <yxt227 at med.miami.edu>
> Cc: Insight-users <insight-users at itk.org>
> Subject: Re: [ITK] [ITK-users]  Texture analysis - two basics
>         questions
> Message-ID:
>         <
> CAPf2UMQFCp7C96Cbh_730j42VJHQSp9D205S7ze4RSuCjpk3UA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thanks Yohann for sharing for posterity both your code and illustrative
> figures.
>
> On Fri, Jan 15, 2016 at 10:52 AM, Yohann Tschudi <yxt227 at med.miami.edu>
> wrote:
>
> > Here is the final code :
> > TextureFeatures.cxx
> > <
> >
> http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/TextureFeatures.cxx
> > >
> > Hope this will be useful for someone.
> >
> > Some results from prostate:
> > Slide13.PNG
> > <
> http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/Slide13.PNG>
> > And brain :
> > Slide15.PNG
> > <
> http://itk-insight-users.2283740.n2.nabble.com/file/n7588359/Slide15.PNG>
> >
> >
> > Thank you Timothee and Dzenan for your answers.
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-analysis-two-basics-questions-tp7588334p7588359.html
> > Sent from the ITK Insight Users mailing list archive at Nabble.com.
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160115/18084c70/attachment.html
> >
> -------------- next part --------------
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
> ------------------------------
>
> End of Community Digest, Vol 28, Issue 27
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160115/0d615207/attachment-0001.html>


More information about the Community mailing list