<html>
<head>
</head>
<body style="font-family: Times New Roman; margin-top: 4px; font-size: 16pt; margin-bottom: 1px; font-style: normal; font-variant: normal; font-weight: normal; margin-left: 4px; line-height: normal; margin-right: 4px">
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">Hi,</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">I am wondering if someone might have a clue about a problem I'm having. I've been using ITK 4.0 successfully in a Matlab mex function for doing non-rigid registration (using the demons algorithm). This has all been 32 bit, using VS2008 and 32 bit Matlab on Win 7 (x64 Windows though). In trying to convert over to 64 bit in the hopes of increased performance, I can:</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">-Successfully compile ITK for x64 (shared libraries)</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">-Successfully compile my mex function for x64</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">But, Matlab x64 no longer likes the result, telling me that it isn't a valid win32 application. My mex function works fine until I add in the ITK code and link those libraries, so it seems clear that it's something that the ITK libraries are bringing along that Matlab doesn't like.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">Any thoughts or suggestions? I think I will try compiling ITK to dll's to see if that makes a difference, but maybe someone has some idea about this?</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Times New Roman">Kent</font> </p>
<br> <br>
</body>
</html>