Skip to content

Commit

Permalink
STYLE: Prefer using setter macro for itk::RGBGibbsPriorFilter ivar
Browse files Browse the repository at this point in the history
Prefer using setter macro for `itk::RGBGibbsPriorFilter` ivar.
  • Loading branch information
jhlegarreta committed Sep 3, 2023
1 parent 3eb8fd7 commit 806bc95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ class ITK_TEMPLATE_EXPORT RGBGibbsPriorFilter : public MRFImageFilter<TInputImag
using IndexType = typename TInputImage::IndexType;

/** Set the image required for training type classifiers. */
void
SetTrainingImage(TrainingImageType image);
itkSetMacro(TrainingImage, TrainingImageType);

/** Set the labelled image. */
void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,6 @@ RGBGibbsPriorFilter<TInputImage, TClassifiedImage>::SetClassifier(typename Class
m_ClassifierPtr->SetNumberOfClasses(m_NumberOfClasses);
}

/* Set the training image. */
template <typename TInputImage, typename TClassifiedImage>
void
RGBGibbsPriorFilter<TInputImage, TClassifiedImage>::SetTrainingImage(TrainingImageType image)
{
m_TrainingImage = image;
}

/* Check if 2 number are identical. */
template <typename TInputImage, typename TClassifiedImage>
int
Expand Down

0 comments on commit 806bc95

Please sign in to comment.