scales;
scales.Fill(1.0);
for( int j =3D 4; j < 7; j++ )
{
scales[j] =3D 1.0 / vnl_math_sqr( m_TranslationScales[0] );
}
internalRegistrator->GetOptimizer()->GetTransform()->SetScale( scales );
=20
First, I don't understand why the code reads in 5 different scales and =
then only uses the first one. =20
Second, it appears that the scaling fills 3 parameters, 4 through 6. =20
I would appreciate it if somenone could explane what this is supposed to =
do. I can't find any other documentation on it.
Also, input lines 10 and 11 read in the starting level shrink factor for =
each of the two images. Is this the term used for resolution reduction?
Thanks for any help.
Dave Rich
--=_CE936558.2E4F886D
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML
I am trying to test the MultiResMIRegistration example =
on a=20
couple of images. However, I do not understand some of the parameters=
of=20
the input file. In particular, line 14 specifies the translation =
scale at=20
each resolution level. These seemed to affect my output in a strange =
way,=20
so I checked into the code:
// set the translation scale
=20
itk::Point<double,7> scales;
scales.Fill(1.0);
=
for(=20
int j =3D 4; j < 7; j++ )
{
=
=20
scales[j] =3D 1.0 / vnl_math_sqr( m_TranslationScales[0] );
=
=20
}
=20
internalRegistrator->GetOptimizer()->GetTransform()->SetScale( =
scales=20
);
First, I don't understand why the code reads in 5 different scales =
and then=20
only uses the first one.
Second, it appears that the scaling fills 3 parameters, 4 =
through=20
6.
I would appreciate it if somenone could explane what this is =
supposed=20
to do. I can't find any other documentation on it.
Also, input lines 10 and 11 read in the starting level shrink factor =
for=20
each of the two images. Is this the term used for resolution=20
reduction?
Thanks for any help.
Dave Rich
--=_CE936558.2E4F886D--
From Siddhartha.Thyagarajan@geind.ge.com Fri Mar 22 03:44:27 2002
From: Siddhartha.Thyagarajan@geind.ge.com (Thyagarajan, Siddhartha (CORP, GEITC))
Date: Fri, 22 Mar 2002 09:14:27 +0530
Subject: [Insight-users] itk to vtk
Message-ID: <1988808309E4D51195440008C716B67AA2775E@ban05xbindge.jfwtc.ge.com>
I'm wondering if there is a way itk classes can be called in vtk ..and if so
how?
_____________________________________________________________________
Siddhartha Thyagarajan EMail:
Siddhartha.Thyagarajan@geind.ge.com
Imaging Technology. Phone: +91-80-8412050 Ext:
3622
GE John F. Welch Technology Center
EPIP, Phase II, Hoodi Village, Whitefield Rd., Bangalore 560066, INDIA
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."
From wlorens1@nycap.rr.com Fri Mar 22 03:42:34 2002
From: wlorens1@nycap.rr.com (Bill Lorensen)
Date: Thu, 21 Mar 2002 22:42:34 -0500
Subject: [Insight-users] itk to vtk
In-Reply-To: <1988808309E4D51195440008C716B67AA2775E@ban05xbindge.jfwtc.
ge.com>
Message-ID: <5.1.0.14.2.20020321224025.024d38c0@pop.nycap.rr.com>
Yes there is, although we have not released the code yet. We have designed a set of vtk classes that encapsulate the import/export mechanisms of vtk and itk. Hopefully, we can release this code soon. It needs a bit of cleanup.
Bill
At 09:14 AM 3/22/02 +0530, Thyagarajan, Siddhartha (CORP, GEITC) wrote:
>I'm wondering if there is a way itk classes can be called in vtk ..and if so
>how?
>
>_____________________________________________________________________
>Siddhartha Thyagarajan EMail:
>Siddhartha.Thyagarajan@geind.ge.com
>Imaging Technology. Phone: +91-80-8412050 Ext:
>3622
>GE John F. Welch Technology Center
>EPIP, Phase II, Hoodi Village, Whitefield Rd., Bangalore 560066, INDIA
>
>
>
>
>
>"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
>ADDRESSEE and may contain confidential and privileged information.
>If the reader of this message is not the intended recipient,
>you are notified that any dissemination, distribution or copy of this
>communication is strictly Prohibited.
>If you have received this message by error, please notify us
>immediately, return the original mail to the sender and delete the
>message from your system."
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users
From lng@insightful.com Fri Mar 22 04:06:47 2002
From: lng@insightful.com (Lydia Ng)
Date: Thu, 21 Mar 2002 20:06:47 -0800
Subject: [Insight-users] MultiResMIRegistration Example
Message-ID: <635ADAEFC2399148BCCBB4193B6BF3A00AA5C8@se2kexch01.insightful.com>
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1D156.FCA4D796
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
SGkgRGF2aWQsIA0KIA0KRmlyc3QgYSBkaXNjbGFpbWVyOiB0aGUgb2JqZWN0aXZlIG9mIHRoZSBl
eGFtcGxlIGlzIHRvIHNob3cgDQpob3cgSVRLIGNvbXBvbmVudHMgYW5kIGNsYXNzZXMgY2FuIGJl
IHVzZWQgZm9yIHJlZ2lzdHJhdGlvbi4gDQpBcyBzdWNoIGl0IG9ubHkgb2ZmZXJzIGEgbGltaXRl
ZCBpbnRlcmZhY2UsIGFsbG93aW5nIHRoZSB1c2VyIA0KdG8gc2V0IG9ubHkgYSBzdWJzZXQgb2Yg
dGhlIHBhcmFtZXRlcnMuIA0KIA0KQXMgeW91IHdvdWxkIGFwcHJlY2lhdGUgSVRLIGlzIHN0aWxs
IHVuZGVyIGNvbnN0cnVjdGlvbiBhcyBhcmUgDQp0aGUgZXhhbXBsZXMgc28gdGhlcmUgYXJlIGF0
IHRpbWVzIHNvbWUgaW5jb25zaXN0ZW5jeSBpbiB0aGUgDQpkb2N1bWVudGF0aW9uLiANCiANClRo
ZSBvcmlnaW5hbCBleGFtcGxlIGRpZCBhbGxvdyB0aGUgdXNlciB0byBzZXQgdGhlIHRyYW5zbGF0
aW9uIA0Kc2NhbGUgYXQgZWFjaCByZXNvbHV0aW9uLiBJIHRvb2sgdGhhdCBmZWF0dXJlIG9mZiBp
biBhbiBhdHRlbXB0IA0KdG8gc2ltcGxmeSB0aGUgZXhhbXBsZSA6LSkgDQooTkIgdGhlIGFjdHVh
bCBjbGFzcyBzdGlsbCBhbGxvd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zZWQgZm9yIHJlc29sdXRpb24NCnJlZHVj
dGlvbj8NCgkgDQoJVGhhbmtzIGZvciBhbnkgaGVscC4NCgkgDQoJRGF2ZSBSaWNoDQoNCg==
------_=_NextPart_001_01C1D156.FCA4D796
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64
eJ8+IgIEAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBYAD
AA4AAADSBwMAFQAUAAYALwAEAD4BASCAAwAOAAAA0gcDABUAFAAGAC8ABAA+AQEJgAEAIQAAADg5
MzRDMDQ3OTQ5MzlDNDlBNzA1OTEwRjkwMDNBQjU0AO0GAQOQBgAIGgAAOAAAAB8AGgABAAAAEgAA
AEkAUABNAC4ATgBvAHQAZQAAAAAAAwA2AAAAAAAfADcAAQAAAGYAAABSAEUAOgAgAFsASQBuAHMA
aQBnAGgAdAAtAHUAcwBlAHIAcwBdACAATQB1AGwAdABpAFIAZQBzAE0ASQBSAGUAZwBpAHMAdABy
AGEAdABpAG8AbgAgAEUAeABhAG0AcABsAGUAAAAAAEAAOQCW16T8VtHBAR8APQABAAAACgAAAFIA
RQA6ACAAAAAAAAIBRwABAAAANQAAAGM9dXM7YT0gO3A9SW5zaWdodGZ1bDtsPVNFMktFWENIMDEt
MDIwMzIyMDQwNjQ3Wi03NDQAAAAAHwBJAAEAAABeAAAAWwBJAG4AcwBpAGcAaAB0AC0AdQBzAGUA
cgBzAF0AIABNAHUAbAB0AGkAUgBlAHMATQBJAFIAZQBnAGkAcwB0AHIAYQB0AGkAbwBuACAARQB4
AGEAbQBwAGwAZQAAAAAAQABOAIDj6fkj0cEBHwBaAAEAAAAWAAAARABhAHYAaQBkACAAUgBpAGMA
aAAAAAAAAgFbAAEAAAA7AAAAAAAAAIErH6S+oxAZnW4A3QEPVAIAAAAARGF2aWQgUmljaABTTVRQ
AERhdmlkLlJpY2hAdHJ3LmNvbQAAAgFcAAEAAAAYAAAAU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AGcAAAAAAAIB+T8BAAAA
XQAAAAAAAADcp0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1JTlNJR0hURlVML09VPUZJUlNUIEFE
TUlOSVNUUkFUSVZFIEdST1VQL0NOPVJFQ0lQSUVOVFMvQ049TE5HAAAAAB8A+j8BAAAAKgAAAFMA
eQBzAHQAZQBtACAAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgAAAAAAAgH7PwEAAAAeAAAAAAAA
ANynQMjAQhAatLkIACsv4YIBAAAAAAAAAC4AAAADAP0/5AQAAAMAGUAAAAAAAwAaQAAAAAADAB1A
AAAAAAMAHkAAAAAAHwAwQAEAAAAIAAAATABOAEcAAAAfADFAAQAAAAgAAABMAE4ARwAAAB8AMkAB
AAAAJgAAAEQAYQB2AGkAZAAuAFIAaQBjAGgAQAB0AHIAdwAuAGMAbwBtAAAAAAAfADNAAQAAACYA
AABEAGEAdgBpAGQALgBSAGkAYwBoAEAAdAByAHcALgBjAG8AbQAAAAAAHwA4QAEAAAAIAAAATABO
AEcAAAAfADlAAQAAAAQAAAAuAAAACwApAAAAAAALACMAAAAAAAMABhCPat7LAwAHEOQIAAADABAQ
AAAAAAMAERAAAAAAHgAIEAEAAABlAAAASElEQVZJRCxGSVJTVEFESVNDTEFJTUVSOlRIRU9CSkVD
VElWRU9GVEhFRVhBTVBMRUlTVE9TSE9XSE9XSVRLQ09NUE9ORU5UU0FORENMQVNTRVNDQU5CRVVT
RURGT1JSRUdJUwAAAAACAX8AAQAAAEMAAAA8NjM1QURBRUZDMjM5OTE0OEJDQ0JCNDE5M0I2QkYz
QTAwQUE1QzhAc2Uya2V4Y2gwMS5pbnNpZ2h0ZnVsLmNvbT4AAK2W
------_=_NextPart_001_01C1D156.FCA4D796--
From jarek@ieee.org Fri Mar 22 04:34:33 2002
From: jarek@ieee.org (Jarek Sacha)
Date: Thu, 21 Mar 2002 23:34:33 -0500
Subject: [Insight-users] Java bindings
Message-ID: <5.1.0.14.2.20020321231722.01fc9238@pop3.norton.antivirus>
Hello ITKers:
Are there plans to add Java bindings to ITK? Two way bindings?
It would be quite nice to be able to combine Java and ITK.
Jarek
From luis.ibanez@kitware.com Fri Mar 22 13:38:06 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Fri, 22 Mar 2002 08:38:06 -0500
Subject: [Insight-users] Re: question: ITK Examples
References: <000b01c1cff0$81223d50$c73d6fa6@fj> <3C989ED1.9020104@kitware.com> <002601c1d0a0$15770170$c73d6fa6@fj> <3C9A0B67.50800@kitware.com> <000001c1d155$4cb32a00$c73d6fa6@fj>
Message-ID: <3C9B33BE.7080509@kitware.com>
Hi Fj,
Here is who I did in my own installation:
1) VTK is installed in d:\vtk40
NOTE that the .exe that you need to download is:
- vtk40Cpp.exe
Which contains both the libraries and headers
for development with VC++ 6.0. The libraries
are automatically put in a "lib" subdirectory and
the headers in an "include" subdirectory.
It looks like you installed "vtk40Core.exe" which
only contains the .dll and put them in a "bin"
subdirectory.
2) In CMake I have selected:
VTK_INSTALL_PATH = D:/vtk40
USE_BUILT_VTK=OFF
USE_INSTALLED_VTK=ON
My guess is that your VTK installation is actually
missing the header files....but this is just a guess.
Please let us know if this helps.
Luis
============================
fj wrote:
>when i set the path is E:\vtk\vtk40\vtk40core\bin,still the same error ,
>
>when i set to E:\vtk\vtk40\vtk40core, still the smae error;
>--------------------Configuration: itkCurvatureFlowToVTK - Win32 Debug--------------------
>Performing Custom Build Step on E:/TEMP/itk/itk/ITKSourceWin32Beta/Insight/Auxiliary/vtk/CMakeLists.txt
>Compiling...
>itkCurvatureFlowToVTK.cxx
>E:\TEMP\itk\itk\ITKSourceWin32Beta\Insight\Auxiliary\vtk\itkCurvatureFlowToVTK.cxx(24) : fatal error C1083: Cannot open include file: 'vtkImageImport.h': No such file or directory
>Error executing cl.exe.
>
>how to set the VTK_BINARY_PATH and VTK_INSTALL_PATH??????
>
>
From brad.king@kitware.com Fri Mar 22 14:29:57 2002
From: brad.king@kitware.com (Brad King)
Date: Fri, 22 Mar 2002 09:29:57 -0500 (EST)
Subject: [Insight-users] Java bindings
In-Reply-To: <5.1.0.14.2.20020321231722.01fc9238@pop3.norton.antivirus>
Message-ID:
Jarek,
> Are there plans to add Java bindings to ITK? Two way bindings? It
> would be quite nice to be able to combine Java and ITK.
The wrapping tool for ITK is CABLE, but it doesn't yet support anything
but Tcl bindings. Extending it to support other languages is planned, but
it will be a while before any new work is done.
-Brad
From dkulkarni@uh.edu Fri Mar 22 17:17:20 2002
From: dkulkarni@uh.edu (Dhananjay Kulkarni)
Date: Fri, 22 Mar 2002 11:17:20 -0600
Subject: [Insight-users] DICOMM reader
Message-ID:
HI ,
I am looking for a DICOM reader as I am working on DICOM files. If possible
I need it in C++.
Is it available somewhere on the web...(open source).
Any help would be greatly appreciated.
Thanks,
Dhananjay Kulkarni.
From will.schroeder@kitware.com Fri Mar 22 19:45:34 2002
From: will.schroeder@kitware.com (Will Schroeder)
Date: Fri, 22 Mar 2002 14:45:34 -0500
Subject: [Insight-users] Downtime for itk.org and
In-Reply-To:
Message-ID: <5.1.0.14.0.20020322144254.026b7640@pop.nycap.rr.com>
Hello!
Kitware's public web server (which serves itk.org) is in need of an
update. We are working towards replacing public.kitware.com with
a much more powerful server. The new server has features such as
dedicated UPS, RAID-5 disk array, better CPU, more memory, and
much more disk space than the old one. We are planning to replace
the server soon, but before we do this, we would like to notify
all users that there will be downtime.
We have not decided on when the replacement will happen, but
the new server is almost ready. We will let you know several
days in advance. If you have any question, comments, or
suggestions, please let us know.
Andy Cedilnik (andy.cedilnik@kitware.com)
Kitware Inc.
From luis.ibanez@kitware.com Sat Mar 23 13:58:45 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Sat, 23 Mar 2002 08:58:45 -0500
Subject: [Insight-users] Re: question: ITK Examples
References: <000b01c1cff0$81223d50$c73d6fa6@fj> <3C989ED1.9020104@kitware.com> <002601c1d0a0$15770170$c73d6fa6@fj> <3C9A0B67.50800@kitware.com> <000001c1d155$4cb32a00$c73d6fa6@fj> <3C9B33BE.7080509@kitware.com> <000801c1d20b$464b55a0$c73d6fa6@fj>
Message-ID: <3C9C8A15.8090702@kitware.com>
Hi fj,
It is Ok to install vtk40core.exe and
vtk40cpp.exe in a different path.
If you install vtk40cpp you don't need
vtk40core.exe at all. ( I would remove
vtk40core in order to avoid confusions).
vtk40Cpp.exe contains all what you need:
1) a lib/vtk directory with all the libraries
as static libraries.
2) an include/vtk directory with all the
headers.
vtk40Core.exe is intended for applications
that link dynamically with VTK but not for
code development. Let's say that you write
your killer application using VTK, when
you build it you can link dynamically with
VTK dll's; So when you ship your application
to a client, the VTK dll's can be appart from
your application. That prevents you from
producing huge .exe files in which a large
percent of the code are the VTK libs themselves.
All that makes more sense when you produce
your secons killer application :-) because this
second one can just "share" the dlls (that's what
shared libraries are for, after all...) So you
factorize the VTK code from the applications
that use it.
----
(comming back to ITK....)
When you install vkt40Cpp.exe it asks you for a
particular directory where you want to have the
/lib/vtk and include/vtk subdirectories. This
same directory is the one that you should pass to
CMake as :
VTK_INSTALLED_PATH
then put
USE_INSTALLED_VTK to "ON"
That should do it !
Please let us know if that works for you.
You're very close now, don't give up !! :-)
Luis
===============================
fj wrote:
>Hi Luis :
> I have install vtk40core.exe and vtk40cpp.exe in a different folder.is that ok???????
>are the vtk40core and vtk40cpp all in the same path you have used?????
>
From luis.ibanez@kitware.com Mon Mar 25 14:08:12 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Mon, 25 Mar 2002 09:08:12 -0500
Subject: [Insight-users] Re: another question
References: <000001c1d3d0$ae11e070$c73d6fa6@fj>
Message-ID: <3C9F2F4C.1000806@kitware.com>
Hi Fj,
ITK have different kinds of examples.
Some of them run on the command line.
Some of them have a GUI.
The ones that run on the command line have
to be executed from the MS-DOS command
window or the Cygwin Bash shell window.
If you click on them from the file navigator
you will only see the MS-DOS window
pop-up and disappear right away.
Most of the examples that use a GUI require
to install FLTK in your machine. FLTK is not
required for using the ITK library. It is *only*
used by some of the examples.
Once you build ITK all the executables for the
examples are placed in their corresponding
subdirectory. For example, the Morphogenesis
example executable will be placed in your binary
directory under:
myITKBinaryDirectory/Examples/Morphogenesis/Debug/Morphogenesis.exe
Note that VC++ always add a subdirectory with
the configuration you selected at build time:
(Debug, Release, ...etc). For the examples with
GUI you can go directly to their binary directories
and double click on the icon of the .exe file.
It may be simpler to do it from VC++ just to
selecting their project as an active project and
making: Ctrl+F5
Are you interested in running a particular example ?
---------------------------------
In case you want to verify the installation
sequence for examples with GUI, here is
a detailed description:
1) Install FLTK
2) Run CMake and do the following:
2.1) set BUILD_AUXILIARY = ON
2.2) Click on the "Advanced" checkbox
2.2.1) Select FLTK_LIBRARY="... your path to fltk.lib.. "
2.2.2) Select FLTK_INCLUDE_PATH="..your path to fltk dir "
2.2.3) Select FLTK_FLUID_PATH=" your path to /fluid/fluid.exe..."
2.3) set BUILD_FLTKIMAGEVIEWER = ON
2.4) set BUILD_EXAMPLES = ON
2.5) click on "Configure" until no new red items appear.
2.6) click on "OK" (CMake will generate the projects and quit)
3) Open ITK.dsw with VC++.
You should see most of the examples in the list of projects.
-------------------------------------
fj wrote:
> Hi luis :
>
> another question .I have install fltk before install itk ,and when I
> compile itk I have select the BUILD_Auxiliary "ON". And I have know if
> I select the BUILD_Auxiliary "ON", I can get a gui to use to example
> .how to start the gui?
>
> I did not find it in my itk folder(installed folder).
>
From luis.ibanez@kitware.com Mon Mar 25 14:46:21 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Mon, 25 Mar 2002 09:46:21 -0500
Subject: [Insight-users] Re: question: ITK Examples
References: <000b01c1cff0$81223d50$c73d6fa6@fj> <3C989ED1.9020104@kitware.com> <002601c1d0a0$15770170$c73d6fa6@fj> <3C9A0B67.50800@kitware.com> <000001c1d155$4cb32a00$c73d6fa6@fj> <3C9B33BE.7080509@kitware.com> <000801c1d20b$464b55a0$c73d6fa6@fj> <3C9C8A15.8090702@kitware.com> <000801c1d3cd$67ab71d0$c73d6fa6@fj>
Message-ID: <3C9F383D.6060308@kitware.com>
Hi Fj,
There was an error in the CMakeLists.txt file in :
Insight/Examples.
The option that enables the WatershedSegmenation example
was misspelled as "WATERSHED_REGISTRATION"
instead of "WATERSHED_SEGMENTATION".
It is now fixed on the repository if you want to make a
cvs update. Otherwise you can just go and edit the file.
in:
Insight/Examples/CMakeLists.txt
go to line 17, and replace:
BUILD_WATERSHED_REGISTRATION
by
BUILD_WATERSHED_SEGMENTATION
and the run CMake.
The project : itkWatershedSegmentation should now
appear in your VC++ workspace when you load ITK.dsw.
Once you get it built, you can run this example from the
command line. You will find detailed instructions about
how to run this example in the README file located at
Insight/Examples/WatershedSegmentation/README
and in the web page of the example, located at:
http://www.itk.org/HTML/WatershedSegmentationExample.html
BTW: most of the examples have descriptions at the web page:
http://www.itk.org/HTML/Examples.htm
Please let us know if you encounter any problem when
trying to run the example.
Thanks
Luis
===========================================
fj wrote:
>Hi Luis :
> I have successfully install itk(i think).But I still can not use the example.
>I have see the readme of FuzzyConnectedness.So I have know the input rule of it . So I can use the example.
>But I still can use the watershedsegmentation example .
>When I double click the watershedsegmentation.exe in the debug folder,the new window just flash one time ,and some word on it ,and then nothing.
>the word in the window is :
>
>use:watershed input_file output_file_prefix conductance_temp diffusion_iterations lower_threshlod
>press any key to continue
>
>how can i use the example to segment a *.pgm ???????
>
>thanks for your help yours fangjing
>
From Vincent.Daanen@imag.fr Tue Mar 26 13:08:46 2002
From: Vincent.Daanen@imag.fr (Vincent Daanen)
Date: Tue, 26 Mar 2002 14:08:46 +0100
Subject: [Insight-users] Compilation of Itk fails on Win2000
Message-ID: <3CA072DE.52851437@mail-timc.imag.fr>
Hi,
I try to compile itk on a win2000 based box with msvc 6.0
When compiling the IView project, compilation stop with theses errors
IViewGUI.cxx (same errors for IViewGUIBase.cxx file)
E:\Outils_Dev\fltk-1.1.0b10\FL\math.h(52) : error C2065: 'floor' :
undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(149) : error
C2039: 'sqrt' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(149) : error
C2065: 'sqrt' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'exp' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'log' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'exp' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'log' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2065: 'exp' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2065: 'log' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vcl\win32/vcl_complex.h(49) :
error C2373: 'sqrt' : redefinition; different type modifiers
Is this due to a mis configuration within CmakeSetup ?
what should I do ?
Thanks for help
Vince
--
Vincent Daanen,
Research Engineer- Post Doctoral Position
Laboratoire TIMC/IMAG Equipe GMCAO - Université Joseph Fourier - CNRS
UMR 5525
Faculté de Médecine - Domaine de la Merci - 38706 La Tronche cedex -
France
Tel: +33 (0)4 76 54 95 23
Vincent.Daanen@imag.fr
From jjomier@cs.unc.edu Tue Mar 26 16:15:15 2002
From: jjomier@cs.unc.edu (Julien Jomier)
Date: Tue, 26 Mar 2002 11:15:15 -0500
Subject: [Insight-users] Compilation of Itk fails on Win2000
References: <3CA072DE.52851437@mail-timc.imag.fr>
Message-ID: <002401c1d4e1$6a0d4830$33ff1398@vangogh>
Hi Vincent,
That seems to be a problem with FLTK:
Did you compile FLTK using multithread DLL directive ?
(msvc under Projects/Settings/"C/C++")
Let me know if that works
Julien
----- Original Message -----
From: "Vincent Daanen"
To:
Sent: Tuesday, March 26, 2002 8:08 AM
Subject: [Insight-users] Compilation of Itk fails on Win2000
Hi,
I try to compile itk on a win2000 based box with msvc 6.0
When compiling the IView project, compilation stop with theses errors
IViewGUI.cxx (same errors for IViewGUIBase.cxx file)
E:\Outils_Dev\fltk-1.1.0b10\FL\math.h(52) : error C2065: 'floor' :
undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(149) : error
C2039: 'sqrt' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(149) : error
C2065: 'sqrt' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'exp' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'log' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'exp' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2039: 'log' : is not a member of '`global namespace''
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2065: 'exp' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vnl/vnl_math.h(153) : error
C2065: 'log' : undeclared identifier
E:\Outils_Dev\Insight\Code\Numerics\vxl\vcl\win32/vcl_complex.h(49) :
error C2373: 'sqrt' : redefinition; different type modifiers
Is this due to a mis configuration within CmakeSetup ?
what should I do ?
Thanks for help
Vince
--
Vincent Daanen,
Research Engineer- Post Doctoral Position
Laboratoire TIMC/IMAG Equipe GMCAO - Université Joseph Fourier - CNRS
UMR 5525
Faculté de Médecine - Domaine de la Merci - 38706 La Tronche cedex -
France
Tel: +33 (0)4 76 54 95 23
Vincent.Daanen@imag.fr
_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users
From luis.ibanez@kitware.com Wed Mar 27 14:44:50 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Wed, 27 Mar 2002 09:44:50 -0500
Subject: [Insight-users] pragmatic.crd Time Machine
Message-ID: <3CA1DAE2.9030102@kitware.com>
HI,
"pragmatic.crd" is producing 97 warning messages
related with a clock synchronization problem:
gmake[2]: *** Warning: File `cmake.depends' has modification time in the
future (2002-03-27 08:03:21 > 2002-03-27 07:54:20)
gmake[2]: warning: Clock skew detected. Your build may be incomplete.
The system clock seems to be 9 minutes ahead of the file server.
Could it be possible to synchronize this platform ?
Thanks
Luis
From luis.ibanez@kitware.com Wed Mar 27 14:49:15 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Wed, 27 Mar 2002 09:49:15 -0500
Subject: [Insight-users] pragmatic.crd Time Machine
References: <3CA1DAE2.9030102@kitware.com>
Message-ID: <3CA1DBEB.20106@kitware.com>
My apologies,
This message was suppossed to be sent to the developers list.
Luis
----------------------------------------------
Luis Ibanez wrote:
> HI,
>
> "pragmatic.crd" is producing 97 warning messages
> related with a clock synchronization problem:
>
>
> gmake[2]: *** Warning: File `cmake.depends' has modification time in the
> future (2002-03-27 08:03:21 > 2002-03-27 07:54:20)
> gmake[2]: warning: Clock skew detected. Your build may be incomplete.
>
>
>
> The system clock seems to be 9 minutes ahead of the file server.
>
>
> Could it be possible to synchronize this platform ?
>
>
>
> Thanks
>
>
> Luis
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
From ycllydia@hotmail.com Wed Mar 27 18:04:50 2002
From: ycllydia@hotmail.com (ycl lydia)
Date: Wed, 27 Mar 2002 18:04:50 +0000
Subject: [Insight-users] win32 Console application
Message-ID:
Hi folks
I have two questions
1. I made the win32 console application as mention in the document VC_Custom
project. I followed exactly the instructions, but I got a list of 102
message errors: Here is a sample
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2653:
'vcl_generic_iosfwd_STD' : is not a class or namespace name
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2143:
syntax error : missing ';' before '&'
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2501:
'ostream' : missing storage-class or type specifiers
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2059:
syntax error : ';'
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2653:
'vcl_generic_iosfwd_STD' : is not a class or namespace name
d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error C2061:
syntax error : identifier 'ostream'
Could anyone help ?
_________________________________________________________________
MSN Photos est le moyen le plus simple de partager, modifier et imprimer vos
photos préférées. http://photos.msn.fr/Support/WorldWide.aspx
From ycllydia@hotmail.com Wed Mar 27 18:07:57 2002
From: ycllydia@hotmail.com (ycl lydia)
Date: Wed, 27 Mar 2002 18:07:57 +0000
Subject: [Insight-users] another question
Message-ID:
I compiled itk and it works. The only problem that I have is with the
project vtk2itk
I have always this message error
tk2itk.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall vtkObject::Print(class
std::basic_ostream > &)"
(__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits
@D@std@@@std@@@Z)
did anyone already have the same message??
Lydia
_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse
http://explorer.msn.fr/intl.asp.
From luis.ibanez@kitware.com Wed Mar 27 19:04:55 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Wed, 27 Mar 2002 14:04:55 -0500
Subject: [Insight-users] another question
References:
Message-ID: <3CA217D7.9060602@kitware.com>
Hi Lydia,
This particular project is intended to present an example
of how to link ITK with VTK.
It seems that at linking time it is not finding the appropiate
VTK libraries.
Could you please run CMake and double check that the
PATH's you provided for VTK libraries are correct.
Please let us know if that helps or not.
Thanks
Luis
-----------------------------------------------------------
ycl lydia wrote:
> I compiled itk and it works. The only problem that I have is with the
> project vtk2itk
> I have always this message error
> tk2itk.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall vtkObject::Print(class
> std::basic_ostream > &)"
> (__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits
> @D@std@@@std@@@Z)
>
> did anyone already have the same message??
>
> Lydia
>
> _________________________________________________________________
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
From ycllydia@hotmail.com Wed Mar 27 19:13:06 2002
From: ycllydia@hotmail.com (ycl lydia)
Date: Wed, 27 Mar 2002 19:13:06 +0000
Subject: [Insight-users] another question
Message-ID:
Hi Luis,
Thanks Luis for your reply.
I don't think that it's a problem of paths, in fact if don't use the flag /D
"VTK_USE_ANSI_STDLIB" /GX /Zm1000 in the setting, I have a the following
compilation error
error C2664: 'Print' : cannot convert parameter 1 from 'class
std::basic_ostream >' to 'class ostream
&' A reference that is not to 'const' cannot be bound to a non-lvalue
But If I use the flag, I have no compilation error but a linkage error, I
think this is dur to some iostream library.
>From: Luis Ibanez
>To: ycl lydia
>CC: insight-users@public.kitware.com
>Subject: Re: [Insight-users] another question
>Date: Wed, 27 Mar 2002 14:04:55 -0500
>
>
>Hi Lydia,
>
>This particular project is intended to present an example
>of how to link ITK with VTK.
>
>It seems that at linking time it is not finding the appropiate
>VTK libraries.
>
>Could you please run CMake and double check that the
>PATH's you provided for VTK libraries are correct.
>
>Please let us know if that helps or not.
>
>
>Thanks
>
>
>Luis
>
>-----------------------------------------------------------
>
>ycl lydia wrote:
>
>>I compiled itk and it works. The only problem that I have is with the
>>project vtk2itk
>>I have always this message error
>>tk2itk.obj : error LNK2001: unresolved external symbol
>>"__declspec(dllimport) public: void __thiscall vtkObject::Print(class
>>std::basic_ostream > &)"
>>(__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits
>>@D@std@@@std@@@Z)
>>
>>did anyone already have the same message??
>>
>>Lydia
>>
>>_________________________________________________________________
>>Téléchargez MSN Explorer gratuitement à l'adresse
>>http://explorer.msn.fr/intl.asp.
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>
>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users
_________________________________________________________________
Discutez en ligne avec vos amis, essayez MSN Messenger :
http://messenger.msn.fr
From luis.ibanez@kitware.com Wed Mar 27 19:19:05 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Wed, 27 Mar 2002 14:19:05 -0500
Subject: [Insight-users] win32 Console application
References:
Message-ID: <3CA21B29.7070000@kitware.com>
Hi Lydia,
VNL is the mathematical library that support among other
things the management of matrices and vectors in ITK.
This section of the code is heavely tested every day on the Dashboard,
so a compilation error on this headers files suggest that your project
may be including header files in an unfortunate order or that a
configuration
option is going wrong.
It is hard however to guess just from the error message.
Did you created your project using CMake ?
or by setting by hand all the options in new VC++ project ?
Could you please post your code to the list ?
In particular is interesting to see what are the headers
you are including.
Thanks
Luis
==========================================================
ycl lydia wrote:
> Hi folks
> I have two questions
> 1. I made the win32 console application as mention in the document
> VC_Custom project. I followed exactly the instructions, but I got a
> list of 102 message errors: Here is a sample
>
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2653: 'vcl_generic_iosfwd_STD' : is not a class or namespace name
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2143: syntax error : missing ';' before '&'
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2501: 'ostream' : missing storage-class or type specifiers
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2059: syntax error : ';'
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2653: 'vcl_generic_iosfwd_STD' : is not a class or namespace name
> d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
> C2061: syntax error : identifier 'ostream'
>
> Could anyone help ?
>
>
> _________________________________________________________________
> MSN Photos est le moyen le plus simple de partager, modifier et
> imprimer vos photos préférées.
> http://photos.msn.fr/Support/WorldWide.aspx
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
From luis.ibanez@kitware.com Wed Mar 27 19:28:05 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Wed, 27 Mar 2002 14:28:05 -0500
Subject: [Insight-users] another question
References:
Message-ID: <3CA21D45.5040600@kitware.com>
Lydia,
You're right, the problem is related to an iostream header.
By default VTK use the traditional header files for iostrem,
like:
#include
instead of the new ones used by ITK, like
#include
These two styles are incompatible.
In order to use VTK with ITK you need to set
VTK_USE_ANSI_STDLIB to "ON"
in CMake when building VTK. This tells VTK to
use the new standard header files so it can be
compatible with ITK.
Is the "Print" error message appearing when you
compile VTK or when you compile ITK ?
Could you post to the list the complete error message
to get an idea of the file from which this is originated.
Thanks
Luis
=======================================
ycl lydia wrote:
> Hi Luis,
> Thanks Luis for your reply.
> I don't think that it's a problem of paths, in fact if don't use the
> flag /D "VTK_USE_ANSI_STDLIB" /GX /Zm1000 in the setting, I have a the
> following compilation error
> error C2664: 'Print' : cannot convert parameter 1 from 'class
> std::basic_ostream >' to 'class
> ostream &' A reference that is not to 'const' cannot be bound to a
> non-lvalue
> But If I use the flag, I have no compilation error but a linkage
> error, I think this is dur to some iostream library.
>
>
>> From: Luis Ibanez
>> To: ycl lydia
>> CC: insight-users@public.kitware.com
>> Subject: Re: [Insight-users] another question
>> Date: Wed, 27 Mar 2002 14:04:55 -0500
>>
>>
>> Hi Lydia,
>>
>> This particular project is intended to present an example
>> of how to link ITK with VTK.
>>
>> It seems that at linking time it is not finding the appropiate
>> VTK libraries.
>>
>> Could you please run CMake and double check that the
>> PATH's you provided for VTK libraries are correct.
>>
>> Please let us know if that helps or not.
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>> -----------------------------------------------------------
>>
>> ycl lydia wrote:
>>
>>> I compiled itk and it works. The only problem that I have is with the
>>> project vtk2itk
>>> I have always this message error
>>> tk2itk.obj : error LNK2001: unresolved external symbol
>>> "__declspec(dllimport) public: void __thiscall vtkObject::Print(class
>>> std::basic_ostream > &)"
>>> (__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits
>>> @D@std@@@std@@@Z)
>>>
>>> did anyone already have the same message??
>>>
>>> Lydia
>>>
>>> _________________________________________________________________
>>> Téléchargez MSN Explorer gratuitement à l'adresse
>>> http://explorer.msn.fr/intl.asp.
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users@public.kitware.com
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users@public.kitware.com
>> http://public.kitware.com/mailman/listinfo/insight-users
>
>
>
> _________________________________________________________________
> Discutez en ligne avec vos amis, essayez MSN Messenger :
> http://messenger.msn.fr
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
From ycllydia@hotmail.com Wed Mar 27 19:39:15 2002
From: ycllydia@hotmail.com (ycl lydia)
Date: Wed, 27 Mar 2002 19:39:15 +0000
Subject: [Insight-users] another question
Message-ID:
I'm using vtk sine a while now and there is no problem with it. The message
appears when I compile itk. I think your explanation is logical, now, I will
try to rebuild vtk, I don't remember if I set TK_USE_ANSI_STDLIB to "ON"
when I built it the first time.
Here is the compete message
(D:\itknew\Insight\Unsupported\vtk\vtk2itk.cxx(313) : error C2664: 'Print' :
cannot convert parameter 1 from 'class std::basic_ostream >' to 'class ostream &'
A reference that is not to 'const' cannot be bound to a non-lvalue)
Lydia
>From: Luis Ibanez
>To: ycl lydia
>CC: insight-users@public.kitware.com
>Subject: Re: [Insight-users] another question
>Date: Wed, 27 Mar 2002 14:28:05 -0500
>
>
>Lydia,
>
>
>You're right, the problem is related to an iostream header.
>By default VTK use the traditional header files for iostrem,
>like:
>
> #include
>
>instead of the new ones used by ITK, like
>
> #include
>
>These two styles are incompatible.
>
>
>In order to use VTK with ITK you need to set
>
> VTK_USE_ANSI_STDLIB to "ON"
>
>in CMake when building VTK. This tells VTK to
>use the new standard header files so it can be
>compatible with ITK.
>
>
>Is the "Print" error message appearing when you
>compile VTK or when you compile ITK ?
>
>
>Could you post to the list the complete error message
>to get an idea of the file from which this is originated.
>
>
>Thanks
>
> Luis
>
>
>
>=======================================
>
>ycl lydia wrote:
>
>>Hi Luis,
>>Thanks Luis for your reply.
>>I don't think that it's a problem of paths, in fact if don't use the
>>flag /D "VTK_USE_ANSI_STDLIB" /GX /Zm1000 in the setting, I have a the
>>following compilation error
>>error C2664: 'Print' : cannot convert parameter 1 from 'class
>>std::basic_ostream >' to 'class
>>ostream &' A reference that is not to 'const' cannot be bound to a
>>non-lvalue
>>But If I use the flag, I have no compilation error but a linkage
>>error, I think this is dur to some iostream library.
>>
>>
>>>From: Luis Ibanez
>>>To: ycl lydia
>>>CC: insight-users@public.kitware.com
>>>Subject: Re: [Insight-users] another question
>>>Date: Wed, 27 Mar 2002 14:04:55 -0500
>>>
>>>
>>>Hi Lydia,
>>>
>>>This particular project is intended to present an example
>>>of how to link ITK with VTK.
>>>
>>>It seems that at linking time it is not finding the appropiate
>>>VTK libraries.
>>>
>>>Could you please run CMake and double check that the
>>>PATH's you provided for VTK libraries are correct.
>>>
>>>Please let us know if that helps or not.
>>>
>>>
>>>Thanks
>>>
>>>
>>>Luis
>>>
>>>-----------------------------------------------------------
>>>
>>>ycl lydia wrote:
>>>
>>>>I compiled itk and it works. The only problem that I have is with the
>>>>project vtk2itk
>>>>I have always this message error
>>>>tk2itk.obj : error LNK2001: unresolved external symbol
>>>>"__declspec(dllimport) public: void __thiscall vtkObject::Print(class
>>>>std::basic_ostream > &)"
>>>>(__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits
>>>>@D@std@@@std@@@Z)
>>>>
>>>>did anyone already have the same message??
>>>>
>>>>Lydia
>>>>
>>>>_________________________________________________________________
>>>>Téléchargez MSN Explorer gratuitement à l'adresse
>>>>http://explorer.msn.fr/intl.asp.
>>>>
>>>>_______________________________________________
>>>>Insight-users mailing list
>>>>Insight-users@public.kitware.com
>>>>http://public.kitware.com/mailman/listinfo/insight-users
>>>>
>>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users@public.kitware.com
>>>http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>>
>>_________________________________________________________________
>>Discutez en ligne avec vos amis, essayez MSN Messenger :
>>http://messenger.msn.fr
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>
>
>
_________________________________________________________________
Discutez en ligne avec vos amis, essayez MSN Messenger :
http://messenger.msn.fr
From luis.ibanez@kitware.com Thu Mar 28 06:18:56 2002
From: luis.ibanez@kitware.com (Luis Ibanez)
Date: Thu, 28 Mar 2002 01:18:56 -0500
Subject: [Insight-users] about TPS and EBS
References: <001701c1cd80$71be7620$1223bd89@ee.cuhk.edu.hk> <3C9613F2.80506@kitware.com> <002b01c1cf5e$b31bbee0$1223bd89@ee.cuhk.edu.hk> <3C98BA27.4000405@kitware.com> <002201c1d033$9fc853a0$19c3000a@dingdan>
Message-ID: <3CA2B5D0.1030902@kitware.com>
Hi Alex,
The Code for the ThinPlateSpline and
ElasticBodySpline is running much
faster now.
The bottleneck was at the level of
the base class: itkKernelTransform.
It was reorganizing the W matrix each
time a point was transformed.
This reorganization has been moved now
to a "ReorganizeW()" method that is called
only once at the end of ComputeW().
This method produce: (1) a NDxNL Matrix
with the weights to be applied to all the
G Kernel matrices, (2) one NDxND Matrix
and (3) one ND vector with components of
the Affine part of the transformation.
ND = Dimensions of points
NL = Dimensions of landmarks
Note that ITK is N-Dimensional !
This KernelTransforms can be applied to
Points in any dimension.
We added the third Spline Kernel described
in Davis' IEEE-TMI paper: the "Volume" spline
where G = r^3 * I. It is in fact quite easy
to add new kernels. Just add a new class
deriving from KernelSpline and rewrite the
G() matrix.
An Important point:
the KernelSpline transform is templated over
the type used for representing the points in
space (typically float or double) This type
is being used now for the transformation matrices
too, which has a fundamental influence in the
results of the inversion of the matrix.
The vnl_svd method is quite sensitive to the
use of float. You can interpret that as :
"never use float" ! :-)
We will be fixing the intenal matrix type of
the KernelTransform to "double" in the short
term.
If you want to verify how much it changes the
results (and have some fun on the way...),
just change "double" by "float" in line 46 of
Examples/ThinPlateSpline/ThinPlateSplineApplicationBase.cxx
recompile and run the demo.
In order to execute the Transform, click on
the "Map Points" button at the lower right corner
of the GUI.
Points transformed by VTK are displayed in Green
Points transformed by ITK are displayed in Red
You can select the ITK and VTK kernels with the
Choice button in the upper right of the GUI.
Note that the only two equivalent kernels are
VTK's "R" with ITK's ThinPlate.
The other combinations are not supposed to
produce the same results.
Clicking on the menu bar option "Time" will display the
results of computing time for each one of the method.
You can ask for the results at each time by clickin on
the "Report" button or you can run in continuous mode
by clicking on the checkbox "Continuous".
These are the time I got now on Window on debug mode:
ITK TPS 0.156 seconds
VTK TPS 0.016 seconds
Under Linux (in debugging mode too) the times are:
ITK TPS 1.37
ITK TPS 1.01
(Windows and linux times are not comparable here)
We could probably improve the performance by delegating
computation of the weighted sum of kernels to the
TPS, EBS and VS subclasses.
For example in the TPS and VS the Kernels are diagonal
matrices with const elements, so only three multiplications
are actually required for multiplying the G matrix by a
vector of weights. We perform however nine multiplications
because we use the normal matrix product (six of these
multiplications are always products by zero...in the TPS
and VS cases).
Please let us know if these changes help to improve
the performance of your code.
Thanks
Luis
---------------
Alex zhang wrote:
> Dear Mr Luis£º
> Thank you very much for your work.
> I just wonder that why there should be this much diffence between codes in ITK and VTK.
> I have checked the code for TPS and EBS, and I don't think there is special optimization
> in VTK TPS, it is also follow the matrix calculation step by step similar with the ITK TPS and EBS,only diffence is that the calculation of the ITK is on a 3N+12 times 3N+12 matrix(svd)
> and the VTK TPS is done on three N+4 times N+4 matrices, and I have try svd method in matlab,
> there isn't so much time diffence between the SVD of a 3N+12*3N+12 matrix and a N+4*N+4
> matrix. I am wondering about this and hope we can find the reason for this.
>
> regards,
> zhang zhijun
>
>