[Insight-users] priors in itkBayesianClassifierImageFilter

Karthik Krishnan karthik.krishnan at kitware.com
Mon Dec 14 08:14:02 EST 2009


Take a look at Examples/Statistics/BayesianClassifier.cxx: and at
Examples/Statistics/BayesianClassifierInitializer.cxx:

This class does have a method to set the priors. The prior image
expected (optionally as the second input) is a N component
VectorImage, where N is the number of classes. If the prior image is
not specified, a uniform distribution is taken, (ie no priors.).

The API to do this is simply....

   filter->SetInput( 1, priorVectorImage );

This is documented clearly in the doxygen.

Thanks
--
karthik

On Mon, Dec 14, 2009 at 7:47 AM, Bruno Arbter
<bruno.arbter at isv.uni-stuttgart.de> wrote:
> I want to use itkBayesianClassifierImageFilter with priors but I cannot find
> any function to set the priors (e.g. SetPriors) in the class
> itkBayesianClassifierImageFilter. How is the correct way to set priors?
>
> Bruno
>
> _____________________________________
> 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
>



-- 
_________________________________
Karthik Krishnan
R&D Engineer,
Kitware Inc.
Ph: +1 5188814919, +91 9538477060


More information about the Insight-users mailing list