[ITK] [ITK-users] Error running Exmaple code -- ICP2.cxx

Kevin gralewskik at email.chop.edu
Sun Oct 19 20:13:09 EDT 2014


Hello, 

Just started working with ITK and could use help from this nice community
getting up to speed.

As the subject reads, I'm currently trying to run iterativeclosestpoint2.cxx
from the example source code to register 2 volume meshes. Below is the
copied error message I keep getting (ClosestPoint3D is the executable name,
obviously):

/ClosestPoint3D(15746,0x7fff79138310) malloc: *** error for object
0x7f818d00e328: incorrect checksum for freed object - object was probably
modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6/

 I haven't coded in about 10 years and was never great at debugging so I'm
at a bit of a loss. I'm running the official release 4.6.1 on OS X 10.9.5
with clang, Apple LLVM 6.0 (based on 3.5).

Here are a few more details/curious notes: when I would pass it the mesh
files in either .STL or .vtk format the code would get stuck in the indexing
function (I just dropped and returned an counter in the while loop).  It
never kicked out even after running for iterations orders of magnitude more
than the points (and edges for that matter). 

I then passed it a point cloud file as both a .txt and .xyz (a 3D point plot
from MeshLab 1.3.3). This is when I get the checksum error. The code indexed
and returned the points tally fine, and initiated a matrix transform, but
would the abort. Even more oddly, when I run the executable again (with the
same files) to make sure I got the error message right it returned a
solution with the .txt, along with the checksum error, but not the .xyz
point cloud. 

Lastly, I lowered the convergence criterion, epsilon, to .001 thinking maybe
it wasn't converging before the number of iterations was hit, but that
didn't alleviate the issue. In fact, it wouldn't return the initial identity
matrix.




--
View this message in context: http://itk-users.7.n7.nabble.com/Error-running-Exmaple-code-ICP2-cxx-tp34707.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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.php

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://public.kitware.com/mailman/listinfo/insight-users



More information about the Community mailing list