[Insight-developers] ITK Wrapping Regressions

Johnson, Hans J hans-johnson at uiowa.edu
Mon May 9 21:45:26 EDT 2011


I've discovered some wrapping that is working in ITKv3 that does not work in ITKv4.  Should I submit tests that will fail that expose this problem?

I am trying to figure out TCL wrapping in ITKv4 now.

I think I have narrowed it down to a minimal test case that identifies some missing functionality that was in ITKv3, but does not work in ITKv4.

=THE TEST CODE (Used in both ITKv3 and ITKv4) ===========
[johnsonhj at hjhomebuildbox ~]$ cat /tmp/MinimalTest.tcl
package require InsightToolkit

set reader [ itkImageFileReaderIUC2_New ]
$reader SetFileName /tmp/tmp.png
$reader Update
set myImage [ $reader  GetOutput ]
puts [$myImage GetSpacing]

=SUCCESS WITH ITKv3 ===========================
[johnsonhj at hjhomebuildbox ~]$ tclsh /tmp/MinimalTest.tcl
libpng warning: Ignoring truncated iCCP profile.

libpng warning: Ignoring truncated iCCP profile.

_a8598e0201000000_p_itk__VectorTdouble_2u_t

=FAILURE   WITH ITKv4 ==========================
[johnsonhj at hjhomebuildbox ~]$ tclsh /tmp/MinimalTest.tcl
libpng warning: Ignoring truncated iCCP profile.

libpng warning: Ignoring truncated iCCP profile.

invalid command name "_20c5100901000000_p_itkImageUC2"
    while executing
"$myImage GetSpacing"
    invoked from within
"puts [$myImage GetSpacing]"
    (file "/tmp/MinimalTest.tcl" line 7)


This is the last failing component for our PHASE I conversion from ITKv3 to ITKv4.

Any fixes or work-arounds would be greatly appreciated.

Thanks,
Hans


________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110510/b068940f/attachment.htm>


More information about the Insight-developers mailing list