[Insight-users] Help with Wrapping to python
Luis Ibanez
luis.ibanez at kitware.com
Thu Nov 18 19:20:59 EST 2004
Hi Bruno,
mmmm... unlucky situation.
You just run into a class for which the template
parameters have not been wrapped yet.
The way to go here is to wrap the Histogram class
first. Once the histogram is wrapped, we pass the
same instantiations to this particular class.
Being pragmatic, it seems to be better to go around
the issue in the following way:
There is a pending request for implenting a new class:
itkOtsuMultipleThresholdImageFilter
that internally uses the
itkOtsuMultipleThresholdCalculator
This filter will label the image by thresholding it
at the different levels produced by the Calculator.
Once this new filter is available, then it will be
very easy to wrap.
Please let us know if your interest on having this
Calculator wrapped is motivated by using it as a
method for labelling images, or if you have something
else in mind.
If you want it for labeling images, then we rather
implement the OtsuMultipleThreshold filter faster.
Regards,
Luis
--------------------
Bruno Cassaro wrote:
> I’m trying to wrap OtsuMultipleThresholdCalculator to python . But when
> specifying the instantiation i don’t know what is the type of the
> variable TinputHistogram (itk::OtsuMultipleThresholdsCalculator<
> TInputHistogram >).
>
> *My code of wrap_itkOutsuMultipleThresholdCalculator.cxx*
>
>
>
>
>
> #include "itkOtsuMultipleThresholdCalculator.h"
>
> #ifdef CABLE_CONFIGURATION
>
> #include "itkCSwigMacros.h"
>
> namespace _cable_
>
> {
>
> const char* const group =ITK_WRAP_GROUP(itkOtsuMultipleThresholdCalculator);
>
> namespace wrappers
>
> {
>
> ... Instantitation go here ... *WHAT DO I PUT HERE ???*
>
> }
>
> }
>
> #endif
>
> Can anyone help me with this problem ?!?!?
>
> Thanks
>
> Bruno Cassaro
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list