Batchmake slicer

From KitwarePublic
Revision as of 14:45, 24 March 2009 by Finetjul (talk | contribs) (BatchMake in Slicer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  • BatchMake in Slicer

Since Slicer3, BatchMake has been integrated in Slicer. A "BatchProcessing" subsection has been added into the list of modules. Some BatchMake modules have been created into that section: "Gaussian Blur BatchMake", "Registration BatchMake" and "EMSegment BatchMake". All three modules are internally calling the Slicer modules, respectively Gaussian Blur, Register Images and EMSegment Simple.

The goal of BatchProcessing is to run multiple modules multiples times with multiple parameters on multiple inputs without human interaction. This is done by writing a script and executing it locally on your machine or externally using grid computing.

    • How to run a BatchMake module locally?

In this tutorial, we will see how to run locally a Gaussian Blur filter on a single image with different sigma values.

    • Step by step tutorial to run Registration on a Condor grid

In this tutorial, we will see how to execute the "Register Images" filter on a Condor grid. For a single fixed image, we will automatically register multiple moving images to the fixed image. We will assume that Condor has been already installed on your machine(s) and works properly. The first thing you have to do is to run Slicer as a Condor user. If you are a Condor user, you can launch Slicer normally.

$ ./Slicer3-build/Slicer3 

If you are not a Condor user but you created a Condor user (called condor) on your machine, you should run Slicer using your environment variables as a Condor user:

$ su condor -m -c ./Slicer3-build/Slicer3

Note: you would probably have to change the read/write access to your Slicer temporary files.

    • How to vary the module parameters ?
    • How to write your own Batch Processing module ?