[Insight-users] Help with examples

Huss hussaintameem at gmail.com
Fri Aug 6 14:50:57 EDT 2004


Hello Everyone,

I am trying to run the example programs under InsightToolkit-1.6.0. I
copied a program, say MultiResImageRegistration1.txx and put it in a
new folder and wrote a CMakeList.txt file for it.
I also created a new directory for its binaries.

I successfully build, genrate and then run the make to get the obj
file and executable file.

Now when I run the program with the inputs as the moving, fixed and
output images (these are the same one  as given in the examples/Data
directory and suggested to be used for the above code) as the
parameters, I dont get the expected results as shown in the examples.

Can anyone tell what am I doing wrong.
Thanks all.

My CMakeList.txt file looks like this:

PROJECT(MultiResImageRegistration1)

# Find ITK.
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE(FATAL_ERROR
          "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

ADD_EXECUTABLE(MultiResImageRegistration1 MultiResImageRegistration1.cxx )

TARGET_LINK_LIBRARIES(MultiResImageRegistration1 ITKNumerics ITKIO)


More information about the Insight-users mailing list