[Elastix] question on Elastix

S. Klein s.klein at erasmusmc.nl
Sun Apr 14 17:26:33 CEST 2013


Hi Dan,
See the website, download page, for instructions how to access the svn repository.
Cheers,
Stefan

On 08/04/2013 16:33, Dan Xu wrote:
Hi Chris,
Thank you for your detailed reply. Could you let me know how to get your files? I assume that you have modified the original Elastix. Sorry I'm not familar with "trunkpublic".

Thanks,
Dan

On Mon, Apr 8, 2013 at 3:05 AM, Chris Bouwman <Chris.Bouwman at pie.nl<mailto:Chris.Bouwman at pie.nl>> wrote:
Hello Stefan, Dan,

Here a small guideline to generate and use elastix dll:

generate project using CMAKE
To Generate the dll, get the latest files from the trunkpublic.
Generate the project using CMake (remove checkmark from setting ELASTIX BUILD EXECUTABLE).

The following types are used on the interface:
images:
itk::image<TPixel,VImageDimension>
Note that these image must be passed to the dll as a itk::DataObject::Pointer, this can be reached by calling GetPointer() on the itk::image.

note that the pixel type of mask images must be unsigned char!

The result image pixeltype must be the type as specified in the registration parameters (parameter "ResultImagePixelType"). Note that for now elastix can only handle short and unsigned short pixel types.

registration parameters:
Are passed to the dll as a ParameterMapType being a std::map<> containing a string holding the Parametername and a vector<std::string> containing one or more parameter values.

todo
For now the dll can only generate a result image. I also added functionality that enables the user to get the applied transformation.
Furthermore I adapted the code to generate a transformix dll.
However, I have not committed these changes to the trunckpublic so far.

Dan, I do not know what Blitz++ is, so I don't now if that works.

Regards,
Chris Bouwman.


________________________________
From: Dan Xu [mailto:danxu2008 at gmail.com<mailto:danxu2008 at gmail.com>]
Sent: donderdag 4 april 2013 22:03
To: S. Klein
Cc: Elastix; Chris Bouwman
Subject: Re: question on Elastix

Hi Stefan
Thank you very much for the information.

Chris,
Could you shed some light on how to call/modify Elastix functions so that it accepts 3D image data (e.g., multidimensional array in Blitz++) in memory as input?

Thank you,
Dan



On Thu, Apr 4, 2013 at 9:45 AM, S. Klein <s.klein at erasmusmc.nl<mailto:s.klein at erasmusmc.nl>> wrote:
Hi Dan,
Thanks for your interest in elastix. I forward your mail to the mailing list. You can subscribe to this via the website.
Chris Bouwman (cc, but I think he's on the list as well) has developed a library interface for elastix. It's still work in progress, but you could already give it a try.
Chris, could you give a few hints on how to start?
Cheers,
Stefan

On 03/04/2013 20:31, Dan Xu wrote:
Dear Stefan,

I'm trying to use your wonderfully put-together Elastix for some image volume registration. The command line based registration works fine. What I'd really like to do is to call your functions from my main c++ code (where tons of other functionalities, including image reconstruction, exist).

Could you give me some suggestions on how I should call/modify your functions so that it accepts 3D image data in memory as input, instead of from files? I'd also like to supply the parameters through input arguments, rather than from a file if possible.

The 3D image data format I use is the multidimensional array format in Blitz.

Thanks a lot,
Dan


--

Stefan Klein

+31 10 7043049<tel:%2B31%2010%207043049>

http://www.bigr.nl/people/StefanKlein




--
Stefan Klein
+31 10 7043049
http://www.bigr.nl/people/StefanKlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bigr.nl/pipermail/elastix/attachments/20130414/445014e9/attachment.html>


More information about the Elastix mailing list