[Insight-users] ~vnl_svd() {} misterious runtime error
Luis Ibanez
luis.ibanez at kitware.com
Sat Apr 10 09:41:04 EDT 2010
Hi Osc,
I'll go in a minute to your second email
(where you posted the debugging information)
but, just to answer your question:
The reason why the ITK image inverts that matrix
is to make possible a rapid computation of
PhysicalPointToIndex and
IndexToPhysicalPoint
These are computations that are usually applied to many
pixels, and therefore it is convenient to cache the two
Matrices that perform the transformation
(one matrix being the inverse of the other).
A change in the image spacing requires a recomputation
of these two matrices.
Regards,
Luis
----------------------------------------------------------------------------
On Fri, Apr 9, 2010 at 8:09 PM, Osc at r Math <olguna at cimat.mx> wrote:
> Hi All…!!!
>
>
>
> Recently I took back an ITK-VTK-BCB5 project, but as I know ITK & VTK
> improves, I decided to update those toolkits (by the way, congrats!!! For
> this big effort).
>
> Actually, compiled ITK 3.16 & VTK 5.4.2 Releases
>
> BCB 5 with Borland C++ compiler 5.5.
>
>
>
> Today I get a runtime error that it’s pretty mysterious (at least for me)…
>
>
>
> The application reads a 3D image by VTK reader, show it by VTK
> renderization, send it to ITK pipeline, calculates partial derivatives &
> magnitude gradient, then save Dx, Dy, Dz & |V|.
>
>
>
> The image has a spacing, an origin, among others…
>
> When spacing is 1.0, 1.0, 1.0 there’s no problem, everything works fine,
>
> but if spacing changes anyone of those dimensions, application crashes.
>
>
>
> The application is capable to read image, show it, but when tries to
> connect VTKReader to ITKCaster (is first action with ITK) send an “Abnormal
> Program Termination”
>
>
>
> In Debug mode I realize that crashes trying to execute
>
> ~vnl_svd() {}
>
> In vnl_svd.h file and mark an error like:
>
> … Access violation at address XXXX …
>
> If continue debugging, crashes too in:
>
> ~vnl_diag_matrix() {}
>
> In vnl_diag_matrix.h file with similar error
>
> And finally throws an “Abnormal Program Termination”…
>
>
>
> I didn´t know why tries to invert a matrix that contains
>
> xSpacing 0 0
>
> 0 ySpacing 0
>
> 0 0 zSpacing
>
>
>
> ¡¡¡ Someone could help me !!!
>
>
>
> TNX in advance
>
>
> __________ Información de ESET Smart Security, versión de la base de firmas
> de virus 5014 (20100409) __________
>
> ESET Smart Security ha comprobado este mensaje.
>
> http://www.eset.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.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100410/9761cad5/attachment.htm>
More information about the Insight-users
mailing list