From: "Ross Baker" Subject: RE: Image Registration for Medical Imaging Application To: "Jan Kybic" Cc: "Holger Lange" , "Ross Baker" Date: Mon, 2 Feb 2004 11:43:37 -1000 FYI: I've created a master package(Win Zipped) with all required software packages to run BigSpline on Windows. It has worked for me on 2000 and XP. It includes: Python 2.3.3 GNUPLot1.7 Gp373w32 Tcl/TK 8.4 for Python PIL 1.14 NumericArray 0.8 Jkregister (with my alterations outline below) It can be downloaded at: ftp://iuftpout:IUFTPOUTrandom123@ftp.sti-hawaii.com/outgoing/JKRegister/ BigSplineWin32.zip (Please note: if mine or your email client breaks the above line it should be one line and the servers name is ftp.sti-hawaii.com.) In this "zip-file" there is a file BigSpline.dsp. This is a Visual Studio Project File to build BigSpline.dll. I have included BigSpline.dll in this package so the build is not required. With Visual Studio Installed this should compile directly from the jkregister subdirectory of this zip. There is a file setEnv.bat that should be altered to correspond to the location the file is "unzipped" to. *Altered Source: This following source was altered to achieve compilation in the Win 32 Environment. splintinterp.c to compensate for the lack of the rint function . I did not use the call to floor() but rather a simple cast to int with compensation for rounding to preserve functionality. BigSpline.c all functions were made to be non-static Altered jkregister.py to add command line parameters: -otherX -wotherX (where X is 1-10) -other1 specifies another file to be warped based on the registration of testimg and refimg -wother1 is name of file to save warped image to. -otherX/-wotherX options must be used in pairs. To be valid. -wotherX used alone with issue an error. -otherX alone will be ignored eg.) python jkregister.py -wother1 NewImage.tiff -other1 OldImage.tiff -wother2 New2Image.tiff -other2 Old2Image.tiff anatref.tiff anattest.tiff These parameters are optional. I am currently working on an option to save the deformation parameters to a file with the option to warp other images based on previous registrations. Any advice on this would be appreciated. The Algorithm has worked quite well so far for us. Thanks for sharing your work. I hope others will find this Win32 port useful. Ross Baker Working with Holger Lange -----Original Message----- From: Jan Kybic [mailto:kybic@fel.cvut.cz] Sent: Wednesday, January 07, 2004 10:32 PM To: Ross Baker Subject: Re: Image Registration for Medical Imaging Application > Please disregaurd the last email. I have been able to get it working > after reading up on Python. There are quite a few things that must be Good, that's perfect. > 2. splineinterp.c > Line 136 > "floor(x+0.5)" instead of "rint(x)" > "floor(y+0.5)" instead of "rint(y)" I think these are equivalent, but of course, do not change it if it compiles OK on your system. Yours, Jan -- ------------------------------------------------------------------------ - Jan Kybic tel. +420 2 2435 7264 or , http://cmp.felk.cvut.cz/~kybic