<commit_before>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    itkGibbsPriorFilter.h
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef __itkGibbsPriorFilter_h
#define __itkGibbsPriorFilter_h

//#include "itkObject.h"
#include "vnl/vnl_vector.h"
#include "vnl/vnl_matrix.h"

#include "itkImageToImageFilter.h"
//#include "itkSupervisedClassifier.h"
#include "itkMRFImageFilter.h"
#include "itkImageRegionIteratorWithIndex.h"


namespace itk
{

/** \class GibbsPriorFilter
 * \brief 
 *
 * GibbsPriorFilter is a class that apply Gibbs Prior model into 
 * segmentation of MRF images. The core of the method is to minimize
 * a Gibbsian form energy function.
 * The function can be divided into three part: f = f_1 + f_2 + f_3;
 * f_1 for the object homogeneity, f_2 for the boundary smoothness,
 * f_3 is the noise model. f_1 and f_3 is minimized in the function
 * GradientEnergy and f_2 is minized in the function GibbsTotalEnergy
 *
 * \ingroup MRFFilters 
 */
template <class TInputImage, class TClassifiedImage>
class ITK_EXPORT GibbsPriorFilter : public MRFImageFilter<TInputImage, 
  TClassifiedImage>
{
public:
  /** Standard class typedefs. */
  typedef GibbsPriorFilter  Self;
  typedef MRFImageFilter<TInputImage, TClassifiedImage> Superclass;
  typedef SmartPointer<Self>  Pointer;
  typedef SmartPointer<const Self>  ConstPointer;
<commit_msg>DOC: Notation for Doxygen-Latex equations improved.<commit_after>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    itkGibbsPriorFilter.h
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef __itkGibbsPriorFilter_h
#define __itkGibbsPriorFilter_h

//#include "itkObject.h"
#include "vnl/vnl_vector.h"
#include "vnl/vnl_matrix.h"

#include "itkImageToImageFilter.h"
//#include "itkSupervisedClassifier.h"
#include "itkMRFImageFilter.h"
#include "itkImageRegionIteratorWithIndex.h"


namespace itk
{

/** \class GibbsPriorFilter
 * \brief 
 *
 * GibbsPriorFilter is a class that apply Gibbs Prior model into 
 * segmentation of MRF images. The core of the method is to minimize
 * a Gibbsian form energy function.
 * The function can be divided into three parts: \f$ f = f_1 + f_2 + f_3 \f$;
 * \f$ f_1 \f$ for the object homogeneity, \f$ f_2 \f$ for the boundary smoothness,
 * \f$ f_3 \f$ is the noise model. \f$ f_1 \f$ and \f$ f_3 \f$ is minimized in the function
 * GradientEnergy and \f$ f_2 \f$ is minized in the function GibbsTotalEnergy
 *
 * \ingroup MRFFilters 
 */
template <class TInputImage, class TClassifiedImage>
class ITK_EXPORT GibbsPriorFilter : public MRFImageFilter<TInputImage, 
  TClassifiedImage>
{
public:
  /** Standard class typedefs. */
  typedef GibbsPriorFilter  Self;
  typedef MRFImageFilter<TInputImage, TClassifiedImage> Superclass;
  typedef SmartPointer<Self>  Pointer;
  typedef SmartPointer<const Self>  ConstPointer;

{'fraction_non_alphanumeric': 0.14885985139636176, 'fraction_numerical': 0.006661542403279528, 'mean_word_length': 4.609195402298851, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2348487', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1116, 'n_words': 381}