[Insight-users] Re: about DeformableRegistration1

Luis Ibanez luis.ibanez at kitware.com
Sat Oct 9 11:49:07 EDT 2004


Hi Ping,

Given that you are getting link error when you build the
example, it is not reasonable to expect the executable
to work properly.

 From the link error message, it seems that you are linking
against old dynamic libraries.  You probably have dynamic
libraries from version 1.6 mixed with dynamic libraries
of version 1.8.

Please remove *all* traces of your previous ITK installation
before your rebuild ITK 1.8.


Let us know if you find further problems,


   Thanks,


      Luis


--------------------
ping chen wrote:

> Hi Luis,
> 
> Thanks for your reply. 
> 
> this is the message i got when compiling the
> DeformableRegistration1.cxx. 
> 
> Building dependencies. cmake.depends...
> Building object file DeformableRegistration1.o...
> Building executable
> /Users/ccn/Desktop/testdeform1/DeformableRegistration1...
> ld: warning suggest use of -bind_at_load, as lazy
> binding may result in errors or different symbols
> being used
> symbol _timer_ used from dynamic library
> /usr/local/lib/itk/bin/libitknetlib.dylib(dsrc2c.o)
> not from earlier dynamic library
> /usr/local/lib/itk/bin/libITKNumerics.dylib(lbfgsb.o)
> symbol _dcopy_ used from dynamic library
> /usr/local/lib/itk/bin/libitknetlib.dylib(dcopy.o) not
> from earlier dynamic library
> /usr/local/lib/itk/bin/libITKNumerics.dylib(lbfgsb.o)
> 
> 
> this is the parameter file i used 
> 
> [Datacommpcp45058pcs:~/Desktop/testdeform1] ccn% more
> tempparam.txt 
> 
> % Configuration file #1 for
> DeformableRegistration1.cxx
> % 
> % This example demonstrates the setup of a basic
> registration 
> % problem that does NOT use multi-resolution
> strategies.  As a 
> % result, only one value for the parameters between 
> % (# of pixels per element) and (maximum iterations)
> is necessary.
> % If you were using multi-resolution, you would have
> to specify
> % values for those parameters at each level of the
> pyramid.  
> %
> % Note: the paths in the parameters assume you have
> the traditional 
> % ITK file hierarchy as shown below:
> %
> %
> ITK/Insight/Examples/Registration/DeformableRegistration1.cxx
> % ITK/Insight/Examples/Data/RatLungSlice*
> % ITK/Insight-Bin/bin/DeformableRegistration1
> %
> %
> ---------------------------------------------------------
> % Parameters for the single- or multi-resolution
> techniques
> %
> ---------------------------------------------------------
> 5       % Number of levels in the multi-res pyramid (1
> = single-res)
> 5       % Highest level to use in the pyramid
>  16 16 16       % Scaling at lowest level of pyramid
>  4 4 4 4 4              % Number of pixels per element
>  1.e4 1.e4 1.e4 1.e4 1.e4               % Elasticity
> (E)
>  1.e4 1.e4 1.e4 1.e4 1.e4               % Density x
> capacity (RhoC)
>  1 1 1 1 1              % Image energy scaling (gamma)
> - sets gradient step size
>  4 1 1 2 2              % NumberOfIntegrationPoints
>  4 4 4 4 4              % WidthOfMetricRegion
>  10 10 10 10 3          % MaximumIterations
> % -------------------------------
> % Parameters for the registration
> % -------------------------------
> 0 0.99  % Similarity metric (0=mean sq, 1 = ncc,
> 2=pattern int, 3=MI, 5=demons)
> 1.0     % Alpha
> 0       % DescentDirection (1 = max, 0 = min)
> 0       % DoLineSearch (0=never, 1=always, 2=if
> needed)
> 1.e1    % TimeStep
> 0.5     % Landmark variance
> 0       % Employ regridding / enforce diffeomorphism (
> 
>>= 1 -> true)
> 
> % ----------------------------------
> % Information about the image inputs
> % ----------------------------------
> 131     % Nx (image x dimension)
> 169     % Ny (image y dimension)
> 140     % Nz (image z dimension - not used if 2D)
> colin203791+acpc+crop+norm+bits+linear.img     %
> ReferenceFileName  
> 03791+acpc+crop+norm+bits.img  % TargetFileName  
> %
> -------------------------------------------------------------------
> % The actions below depend on the values of the flags
> preceding them.
> % For example, to write out the displacement fields,
> you have to set
> % the value of WriteDisplacementField to 1.
> %
> -------------------------------------------------------------------
> 0       % UseLandmarks? - read the file name below if
> this is true
> -       % LandmarkFileName
> ./colinTo03791result                       %
> ResultsFileName (prefix only)
> 1       % WriteDisplacementField?
> ./colinTo03791disp                         %
> DisplacementsFileName (prefix only)
> 0       % ReadMeshFile?
> -                                      % MeshFileName
> END
> 
> 
> this is the dimension of the brains 
> [Datacommpcp45058pcs:~/Desktop/testdeform1] ccn%
> scanheader colin203791+acpc+crop+norm+bits+linear
> bits/pixel=16
> x_dim=131
> y_dim=169
> z_dim=140
> x_size=1.000000e+00
> y_size=1.000000e+00
> z_size=1.000000e+00
> 
> global maximum=65535
> global minimum=0
> [Datacommpcp45058pcs:~/Desktop/testdeform1] ccn%
> scanheader 03791+acpc+crop+norm+bits
> bits/pixel=16
> x_dim=131
> y_dim=169
> z_dim=140
> x_size=1.000000e+00
> y_size=1.000000e+00
> z_size=1.000000e+00
> 
> global maximum=32767
> global minimum=0
> 
> 
> below is the error i got for 1.8 Release Version of
> ITK. 
> 
> [Datacommpcp45058pcs:~/Desktop/testdeform1] ccn%
> ./DeformableRegistration1 tempparam.txt 
> Reading config file...tempparam.txt
> Example configured. E 10000 10000 10000 10000 10000
> rho 10000 10000 10000 10000 10000
>  reading moving
> colin203791+acpc+crop+norm+bits+linear.img
>  reading fixed 03791+acpc+crop+norm+bits.img
>  beginning level 0
>  scaling 16
>  scaling 16
>  scaling 16
>  ElementsPerDim 2 2.5 2
>  generating regular mesh 
>  generating regular mesh done 
>  DO NOT init interpolation grid : im sz 9 11 9
> MeshSize 8 10 8
>  applying loads 
>  which node 1
>  edge coord 4 0 0
>  which node 1
>  edge coord 4 0 0
>  which node 1
>  edge coord 4 0 0
>  which node 3
>  edge coord 0 5 0
>  which node 3
>  edge coord 0 5 0
>  which node 3
>  edge coord 0 5 0
>  which node 4
>  edge coord 0 0 4
>  which node 4
>  edge coord 0 0 4
>  which node 4
>  edge coord 0 0 4
>  node 1
>  allocating deformation field 
>  load sizes [8, 10, 8]  image [8, 10, 8]
>  load sizes [8, 10, 8]  image [8, 10, 8]
> Error: Visitor
> N3itk3fem28FiniteDifferenceFunctionLoadINS_5ImageIfLj3EEES3_EE
> that operates on objects of
> N3itk3fem35Element3DC0LinearHexahedronMembraneE not
> found!
> Abort
> 
> it works fine for 1.6 Release version of ITK. my
> computer is PowerPC G5, Mac OS X 
> 
> 
> -Minjie
> 
> --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
> 
> 
>>Hi Ping,
>>
>>We will be happy to help you with your registration
>>problem.
>>However, we will need more information than what is
>>provided
>>in your email.
>>
>>The test for this example works fine for us...
>>
>>Please send us the parameter file that you passed to
>>the example.
>>
>>Common suspects here are the parameters of image
>>size, it is
>>common for users to change the input images and
>>forget to update
>>the Nx, Ny, Nz values in the input parameter file.
>>
>>
>>Please give us more information.
>>
>>
>>   Thanks
>>
>>
>>      Luis
>>
>>
>>---------------------
>>ping chen wrote:
>>
>>
>>>Hi Luis, 
>>>
>>>I installed the Release 1.8.0 (August 2004) and
>>
>>tried
>>
>>>to use the example DeformableRegistration1.cxx to
>>>registration two brains. and got the follow
>>
>>problem: i
>>
>>>have no problem running the same program under
>>
>>Release
>>
>>>1.6.0 (January 2004). I appreciate if you could
>>
>>give
>>
>>>me some ideas how to solve this problem. 
>>>
>>>Thanks,
>>>-Ping
>>>
>>>
>>>./DeformableRegistration1 tempparam.txt
>>>Reading config file...tempparam.txt
>>>Example configured. E 10000 10000 10000 10000
>>
>>10000
>>
>>>rho 10000 10000 10000 10000 10000
>>> reading moving
>>>colin203791+acpc+crop+norm+bits+linear.img
>>> reading fixed 03791+acpc+crop+norm+bits.img
>>> beginning level 0
>>> scaling 16
>>> scaling 16
>>> scaling 16
>>> ElementsPerDim 2 2.5 2
>>> generating regular mesh 
>>> generating regular mesh done 
>>> DO NOT init interpolation grid : im sz 9 11 9
>>>MeshSize 8 10 8
>>> applying loads 
>>> which node 1
>>> edge coord 4 0 0
>>> which node 1
>>> edge coord 4 0 0
>>> which node 1
>>> edge coord 4 0 0
>>> which node 3
>>> edge coord 0 5 0
>>> which node 3
>>> edge coord 0 5 0
>>> which node 3
>>> edge coord 0 5 0
>>> which node 4
>>> edge coord 0 0 4
>>> which node 4
>>> edge coord 0 0 4
>>> which node 4
>>> edge coord 0 0 4
>>> node 1
>>> allocating deformation field 
>>> load sizes [8, 10, 8]  image [8, 10, 8]
>>> load sizes [8, 10, 8]  image [8, 10, 8]
>>>Error: Visitor
>>>
>>
> N3itk3fem28FiniteDifferenceFunctionLoadINS_5ImageIfLj3EEES3_EE
> 
>>>that operates on objects of
>>>N3itk3fem35Element3DC0LinearHexahedronMembraneE
>>
>>not
>>
>>>found!
>>>Abort
>>>
>>>
>>
>>
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> 






More information about the Insight-users mailing list