[Insight-users] WatershedSegmention Example

Luis Ibanez luis.ibanez@kitware.com
Wed, 10 Apr 2002 15:37:35 -0400


Hi Paul,

I just followed the sequence for installing the Beta
version and compiling the Watershed example.

There is actually a problem on the CMakeLists.txt
file in the Insight/Examples directory.  This is:

             Insight/Examples/CMakeLists.txt

In this file, line:  17 says:

OPTION( BUILD_WATERSHED_REGISTRATION "...")

Is should be:

OPTION( BUILD_WATERSHED_SEGMENTATION "...")

Notice that the next line (line 18) test for this boolean variable
and according to this it procced to build the directory:

IF( BUILD_WATERSHED_SEGMENTATION)
SUBDIRS(WatershedSegmentation)
ENDIF( BUILD_WATERSHED_SEGMENTATION)

This is the options that you enable from ccmake.
The current name missmatch is preventing your installation
from creating the WatershedSegmentation directory.


Our apologies about that,
We will fix this in the Beta tarball.

======================================


Please find below a step by step sequence for intalling
ITK from the Beta tarball. Please forgive me if some of
the steps are a bit obvious but it is better to have some
redundancy in order to be in the safe side:


0) Remove the current ITK source and binaries
    directories of your previous attemps.

1) Download      ITKSourceUnixBeta.tgz
     from     http://www.itk.org/HTML/Download.php
     Note that you don't have to fill the form again
     because you can bookmark the download page.

2) Let's consider (following your previos mail) that
     your are going to use:

     ~/Insight             for the source code
     ~/Insight-Bin     for the binary build.

3) cd  ~

4)  extract the sources with

      tar -xzf  ITKSourceUnixBeta.tgz

5) cd    ~/Insight/Examples/

6)  edit CMakeLists.txt  and in line 17 change
     BUILD_WATERSHED_REGISTRATION
     for BUILD_WATERSHED_SEGMENTATION

NOTE: steps (5) and (6) will not be necesary once
we update the .tgz beta file
 
7)  mkdir    ~/Insight-Bin

8)  cd    ~/Insight-Bin

9)   ccmake     ~/Insight

10)  Enable *only* the following options
      (in the indicated order)
10.1)   set BUILD_EXAMPLES="ON"
10.2)   click "configure"
10.3)   BUILD_WATERSHED_SEGMENTATION="ON"
10.4)   click "configure"
10.5)   click "generate"   , ccmake will
          generate the makefiles and quit
           
11) without changing directory, type:   "make"

12) Time for coffee    :-)    (the built will take
       between 30min and 1hour) depending on
        your system.


The WatershedSegmentation example should now be
in your binary directory    

~/Insigh-Bin/Examples/WatershedSegmentation.



Please let us know if you encounter any other
problem.


Thank


Luis