@@ -66,7 +66,7 @@ segmentationToIndicatorFunctions(const TImage * image, double sigma) {
66
66
auto caster = CasterType::New ();
67
67
caster->SetInput (image);
68
68
caster->Update ();
69
-
69
+
70
70
// determine the number of labels in the segmentations
71
71
using ImageCalculatorFilterType = itk::MinimumMaximumImageCalculator<FloatImageType>;
72
72
auto imageCalculatorFilter
@@ -180,7 +180,7 @@ imagesToCleaverFloatFields(std::vector<const TImage *> images, double sigma)
180
180
{
181
181
std::vector<cleaver::AbstractScalarField*> fields;
182
182
size_t num = 0 ;
183
- for (auto image : images)
183
+ for (auto image : images)
184
184
{
185
185
using ImageType = TImage;
186
186
using FloatImageType = itk::Image<float , ImageType::ImageDimension>;
@@ -321,6 +321,22 @@ CleaverImageToMeshFilter<TInputImage, TOutputMesh>
321
321
}
322
322
323
323
324
+ template <typename TInputImage, typename TOutputMesh>
325
+ auto
326
+ CleaverImageToMeshFilter<TInputImage, TOutputMesh>
327
+ ::GetOutput (DataObjectPointerArraySizeType index) -> OutputMeshType *
328
+ {
329
+ return static_cast <OutputMeshType *>(this ->ProcessObject ::GetOutput (index));
330
+ }
331
+
332
+ template <typename TInputImage, typename TOutputMesh>
333
+ auto
334
+ CleaverImageToMeshFilter<TInputImage, TOutputMesh>
335
+ ::GetOutput (DataObjectPointerArraySizeType index) const -> const OutputMeshType *
336
+ {
337
+ return static_cast <const OutputMeshType *>(this ->ProcessObject ::GetOutput (index));
338
+ }
339
+
324
340
template <typename TInputImage, typename TOutputMesh>
325
341
void
326
342
CleaverImageToMeshFilter<TInputImage, TOutputMesh>
@@ -482,7 +498,7 @@ CleaverImageToMeshFilter<TInputImage, TOutputMesh>
482
498
}
483
499
}
484
500
485
- OutputMeshType * tetOutput = this ->GetOutput (0 );
501
+ OutputMeshType * tetOutput = this ->GetOutput (0 );
486
502
using CellType = typename OutputMeshType::CellType;
487
503
488
504
for (size_t ii = 0 ; ii < prunedVerts.size (); ii++)
@@ -526,7 +542,7 @@ CleaverImageToMeshFilter<TInputImage, TOutputMesh>
526
542
tetOutput->SetCellData (outputCellData);
527
543
528
544
529
- OutputMeshType * triangleOutput = this ->GetOutput (1 );
545
+ OutputMeshType * triangleOutput = this ->GetOutput (1 );
530
546
531
547
std::vector<size_t > interfaces;
532
548
std::vector<size_t > triangleCellData;
0 commit comments