[Insight-users] Help with Wrapping to python
Bruno Cassaro
bcdalava at cenpra.gov.br
Thu Nov 25 08:47:08 EST 2004
Hi Luis,
As you sad, the template parameters of the histogram class have not been
wrapped. Could you possibly wrap them for me? With this I would be able to
wrap this class (itkOtsuMultipleThresholdCalculator) and some othres
classes
which use this parameters.
It would be very interesting and helpful for me a class like
itkOtsuMultipleThresholdImageFilter, in which having the image I can get
mutiples thresholds. So I would not need to calculate the histogram of the
image in order to ItkOtsuMultipleThresholdCalculator. So, could you
possibly
wrap ItkOtsuMultipleThresholdCalculator too?
Thanks
Bruno
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Bruno Cassaro" <bcdalava at cenpra.gov.br>
> Cc: <insight-users at itk.org>
> Sent: Thursday, November 18, 2004 9:20 PM
> Subject: Re: [Insight-users] Help with Wrapping to python
>
>
> >
> > 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