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
2 changes: 1 addition & 1 deletion src/Application/Tools/Algorithm/GrowCutter.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

//GrowCut
#include <itkSmartPointer.h>
#include "itkFastGrowCut.hxx"
#include "itkFastGrowCut.h"

namespace Seg3D {

Expand Down
12 changes: 9 additions & 3 deletions src/Application/Tools/Algorithm/itkFastGrowCut.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
DEALINGS IN THE SOFTWARE.
*/

#ifndef ITKFASTGROWCUT_H
#define ITKFASTGROWCUT_H
#ifndef itkFastGrowCut_h
#define itkFastGrowCut_h

#include <Application/Tools/Algorithm/FastGrowCut.h>

Expand All @@ -41,6 +41,7 @@ template <typename TInputImage, typename TLabelImage>
class ITK_TEMPLATE_EXPORT FastGrowCut : public ImageToImageFilter<TInputImage, TLabelImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(FastGrowCut);

/** Standard class type aliases. */
using Self = FastGrowCut;
Expand Down Expand Up @@ -126,4 +127,9 @@ class ITK_TEMPLATE_EXPORT FastGrowCut : public ImageToImageFilter<TInputImage, T
bool m_InitializationFlag = false;
};
}
#endif // ifndef ITKFASTGROWCUT_H

#ifndef ITK_MANUAL_INSTANTIATION
# include "itkFastGrowCut.hxx"
#endif

#endif // ifndef itkFastGrowCut_h
14 changes: 13 additions & 1 deletion src/Application/Tools/Algorithm/itkFastGrowCut.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
DEALINGS IN THE SOFTWARE.
*/

#ifndef itkFastGrowCut_hxx
#define itkFastGrowCut_hxx

#include <iostream>

#include "itkFastGrowCut.h"
Expand All @@ -35,6 +38,7 @@
#include <itkSmartPointer.h>
#include <itkImage.h>
#include <itkTimeProbe.h>
#include <itkPrintHelper.h>

namespace itk
{
Expand Down Expand Up @@ -140,7 +144,15 @@ template <typename TInputImage, typename TOutputImage>
void
FastGrowCut<TInputImage, TOutputImage>::PrintSelf(std::ostream& os, Indent indent) const
{
std::cout << "This function has been found." << std::endl; // TODO: add printing of ivars
Superclass::PrintSelf(os, indent);
using namespace itk::print_helper;
os << indent << "InitializationFlag: " << m_InitializationFlag << std::endl;
os << indent << "imSeedVec: " << m_imSeedVec << std::endl;
os << indent << "imLabVec: " << m_imLabVec << std::endl;
os << indent << "imSrcVec: " << m_imSrcVec << std::endl;
os << indent << "imROI: " << m_imROI << std::endl;
os << indent << "FastGC: " << m_fastGC << std::endl;
}

}
#endif // ifndef itkFastGrowCut_hxx