26 #include "itkImageRegionIteratorWithIndex.h"
33 template <
class TNeuron,
class TDistance,
unsigned int VMapDimension>
41 template <
class TNeuron,
class TDistance,
unsigned int VMapDimension>
51 template <
class TNeuron,
class TDistance,
unsigned int VMapDimension>
55 typedef itk::ImageRegionIteratorWithIndex<Self> IteratorType;
61 IteratorType it(
this, this->GetLargestPossibleRegion());
67 double minDistance = activation->Evaluate(sample, it.Get());
70 for (; !it.IsAtEnd(); ++it)
72 double tempDistance = activation->Evaluate(sample, it.Get());
73 if (tempDistance <= minDistance)
75 minDistance = tempDistance;
76 minPos = it.GetIndex();
82 template <
class TNeuron,
class TDistance,
unsigned int VMapDimension>
85 Superclass::PrintSelf(os, indent);