Batchmake slicer: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(BatchMake in Slicer)
 
No edit summary
Line 6: Line 6:
** How to run a BatchMake module locally?
** 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.
In this tutorial, we will see how to run locally a Gaussian Blur filter on a single image with different sigma values.
***Launch Slicer
***Open the "Gaussian Blur BatchMake" module located in "BatchProcessing"
***Choose the different values you want sigma to vary. Generated files will have in their name a sigma suffix.
***Select a directory with images to process for "Data directory"
***Create a mask that matches the filenames of the images to process in the previous directory for "Data file mask"
***Choose an output directory where all the result images will be saved in for "Output directory
***Make sure the "Run using Grid/Condor" checkbox is unchecked
***Press apply to launch the processing


** Step by step tutorial to run Registration on a Condor grid
** Step by step tutorial to run Registration on a Condor grid
Line 15: Line 23:
  $ su condor -m -c ./Slicer3-build/Slicer3
  $ su condor -m -c ./Slicer3-build/Slicer3
Note: you would probably have to change the read/write access to your Slicer temporary files.
Note: you would probably have to change the read/write access to your Slicer temporary files.


** How to vary the module parameters ?
** How to vary the module parameters ?


** How to write your own Batch Processing module ?
** How to write your own Batch Processing module ?

Revision as of 15:27, 25 March 2009

  • 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.

      • Launch Slicer
      • Open the "Gaussian Blur BatchMake" module located in "BatchProcessing"
      • Choose the different values you want sigma to vary. Generated files will have in their name a sigma suffix.
      • Select a directory with images to process for "Data directory"
      • Create a mask that matches the filenames of the images to process in the previous directory for "Data file mask"
      • Choose an output directory where all the result images will be saved in for "Output directory
      • Make sure the "Run using Grid/Condor" checkbox is unchecked
      • Press apply to launch the processing
    • 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 ?