[Insight-users] Code works on windows but not on linux
Luis Ibanez
luis.ibanez at kitware.com
Mon May 24 12:58:17 EDT 2010
Hi Motes,
A typical suspect is that you may have uninitialized variables.
Please run your application in Linux using Valgrind and
let us know if Valgrind reports any errors.
Thanks
Luis
------------------------------------------
On Wed, May 19, 2010 at 5:25 PM, motes motes <mort.motes at gmail.com> wrote:
> I have written a registration application that use the metric
> itkAdvancedMeanSquaresImageToImageMetric in the registration method.
> The code is exactly the same on both my windows and linux machine
> (except that they use different versions of the zlib.h file and
> library).
>
> When I run the application (using 512*512 grayscale images) on
> windows vista using visual studio 2008 everything works fine. But when
> I run it on ubuntu 9.04 I get this error after the first iteration:
>
> itk::ExceptionObject (0x2b68510)
> Location: "void itk::AdvancedImageToImageMetric<TFixedImage,
> TMovingImage>::CheckNumberOfSamples(long unsigned int, long unsigned
> int) const [with TFixedImage = itk::Image<float, 2u>, TMovingImage =
> itk::Image<float, 2u>]"
> File: /home/mor/external/elastix_sources_v4.1/src/Common/CostFunctions/itkAdvancedImageToImageMetric.hxx
> Line: 738
> Description: itk::ERROR:
> AdvancedMeanSquaresImageToImageMetric(0x2b4ff30): Too many samples map
> outside moving image buffer: 0 / 20000
>
>
> Any ideas on why I get this error in linux and not in windows?
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list