[Insight-users] WrapITK and Index
Vincent Page
vpage at univ-ag.fr
Wed Apr 12 10:51:55 EDT 2006
Hi,
I now want to print the index of max and index of min
in an image...
So what I do is :
----------------------------
affiche = itk.MinimumMaximumImageCalculator.IF2.New(masque)
affiche.Compute()
indexMax = affiche.GetIndexOfMaximum()
print indexMax
print affiche.GetMaximum()
indexMin = affiche.GetIndexOfMinimum()
print indexMin
---------------------------
And the result is :
<C itk::Index<(2)> instance at _48a6ea0200000000_p_itk__IndexT2_t>
3.40282346639e+38
<C itk::Index<(2)> instance at _38a6ea0200000000_p_itk__IndexT2_t>
-0.0313725508749
============
Looks like another trouble I had, when WrapITK didn't transform
the results of a function into something usable by python.
Here, I guess that indexMin is some kind of a string
type (indexMin) gives
<class 'itkIndex.itkIndex2Ptr'>
Did I miss something ?
Vincent.
More information about the Insight-users
mailing list