Skip to content

Commit

Permalink
STYLE: Removed redundant PAMI macro
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbeare authored and hjmjohnson committed Sep 6, 2022
1 parent a0d4b97 commit e8025ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "itkImageToImageFilter.h"
#include <vector>

#define PAMI

namespace itk
{
/**
Expand Down Expand Up @@ -211,7 +209,6 @@ class ITK_TEMPLATE_EXPORT AttributeMorphologyBaseImageFilter : public ImageToIma
}
};

#ifdef PAMI
// version from PAMI. Note - using the AuxData array rather than the
// parent array to store area
void
Expand Down Expand Up @@ -259,8 +256,6 @@ class ITK_TEMPLATE_EXPORT AttributeMorphologyBaseImageFilter : public ImageToIma
}
}
}

#endif
};
} // end namespace itk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ AttributeMorphologyBaseImageFilter<TInputImage, TOutputImage, TAttribute, TFunct

// the core algorithm
// process first pixel
#ifdef PAMI
MakeSet(m_SortPixels[0].Pos);
// m_Processed[0] = true;
for (SizeValueType k = 1; k < buffsize; ++k)
Expand Down Expand Up @@ -174,7 +173,6 @@ AttributeMorphologyBaseImageFilter<TInputImage, TOutputImage, TAttribute, TFunct
}
progress.CompletedPixel();
}
#endif

// resolving phase
// copy pixels back
Expand All @@ -185,7 +183,6 @@ AttributeMorphologyBaseImageFilter<TInputImage, TOutputImage, TAttribute, TFunct
// fill Raw - worry about iteration details later.
// We aren't filling m_Parent, as suggested in the paper, because it
// is an integer array. We want this to work with float types
#ifdef PAMI
// write the new image to Raw - note that we aren't putting the
// result in parent
for (pos = buffsize - 1; pos >= 0; --pos)
Expand All @@ -203,7 +200,6 @@ AttributeMorphologyBaseImageFilter<TInputImage, TOutputImage, TAttribute, TFunct
progress.CompletedPixel();
}

#endif

delete[] m_Raw;
delete[] m_SortPixels;
Expand Down

0 comments on commit e8025ad

Please sign in to comment.