Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,8 @@ MRFImageFilter<TInputImage, TClassifiedImage>::Allocate()
m_LabelStatusImage->SetBufferedRegion(region);
m_LabelStatusImage->Allocate();

LabelStatusImageIterator rIter(m_LabelStatusImage, m_LabelStatusImage->GetBufferedRegion());

// Initialize the label status image to 1
while (!rIter.IsAtEnd())
{
rIter.Set(1);
++rIter;
}
m_LabelStatusImage->FillBuffer(1);
}

template <typename TInputImage, typename TClassifiedImage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ template <typename TInputImage, typename TClassifiedImage>
double
RGBGibbsPriorFilter<TInputImage, TClassifiedImage>::GibbsEnergy(unsigned int i, unsigned int k, unsigned int k1)
{
LabelledImageRegionIterator labelledImageIt(m_LabelledImage, m_LabelledImage->GetBufferedRegion());

LabelType f[8];
unsigned int neighborcount = 0;
int simnum = 0;
Expand Down