Skip to content

Commit f87e9f7

Browse files
authored
Merge pull request #396 from SCIInstitute/growcut_dz_changes
Growcut dz changes
2 parents 530e6c8 + 3629cd5 commit f87e9f7

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

src/Application/Tools/Algorithm/GrowCutter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
//GrowCut
3737
#include <itkSmartPointer.h>
38-
#include "itkFastGrowCut.hxx"
38+
#include "itkFastGrowCut.h"
3939

4040
namespace Seg3D {
4141

src/Application/Tools/Algorithm/itkFastGrowCut.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
DEALINGS IN THE SOFTWARE.
2727
*/
2828

29-
#ifndef ITKFASTGROWCUT_H
30-
#define ITKFASTGROWCUT_H
29+
#ifndef itkFastGrowCut_h
30+
#define itkFastGrowCut_h
3131

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

@@ -41,6 +41,7 @@ template <typename TInputImage, typename TLabelImage>
4141
class ITK_TEMPLATE_EXPORT FastGrowCut : public ImageToImageFilter<TInputImage, TLabelImage>
4242
{
4343
public:
44+
ITK_DISALLOW_COPY_AND_MOVE(FastGrowCut);
4445

4546
/** Standard class type aliases. */
4647
using Self = FastGrowCut;
@@ -126,4 +127,9 @@ class ITK_TEMPLATE_EXPORT FastGrowCut : public ImageToImageFilter<TInputImage, T
126127
bool m_InitializationFlag = false;
127128
};
128129
}
129-
#endif // ifndef ITKFASTGROWCUT_H
130+
131+
#ifndef ITK_MANUAL_INSTANTIATION
132+
# include "itkFastGrowCut.hxx"
133+
#endif
134+
135+
#endif // ifndef itkFastGrowCut_h

src/Application/Tools/Algorithm/itkFastGrowCut.hxx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
DEALINGS IN THE SOFTWARE.
2727
*/
2828

29+
#ifndef itkFastGrowCut_hxx
30+
#define itkFastGrowCut_hxx
31+
2932
#include <iostream>
3033

3134
#include "itkFastGrowCut.h"
@@ -35,6 +38,7 @@
3538
#include <itkSmartPointer.h>
3639
#include <itkImage.h>
3740
#include <itkTimeProbe.h>
41+
#include <itkPrintHelper.h>
3842

3943
namespace itk
4044
{
@@ -140,7 +144,15 @@ template <typename TInputImage, typename TOutputImage>
140144
void
141145
FastGrowCut<TInputImage, TOutputImage>::PrintSelf(std::ostream& os, Indent indent) const
142146
{
143-
std::cout << "This function has been found." << std::endl; // TODO: add printing of ivars
147+
Superclass::PrintSelf(os, indent);
148+
using namespace itk::print_helper;
149+
os << indent << "InitializationFlag: " << m_InitializationFlag << std::endl;
150+
os << indent << "imSeedVec: " << m_imSeedVec << std::endl;
151+
os << indent << "imLabVec: " << m_imLabVec << std::endl;
152+
os << indent << "imSrcVec: " << m_imSrcVec << std::endl;
153+
os << indent << "imROI: " << m_imROI << std::endl;
154+
os << indent << "FastGC: " << m_fastGC << std::endl;
144155
}
145156

146157
}
158+
#endif // ifndef itkFastGrowCut_hxx

0 commit comments

Comments
 (0)