20 #ifndef MIRTK_MirrorExtrapolateImageFunction_H 21 #define MIRTK_MirrorExtrapolateImageFunction_H 23 #include "mirtk/ExtrapolateImageFunction.h" 24 #include "mirtk/BaseImage.h" 33 template <
class TImage>
37 mirtkExtrapolatorMacro(
52 static void Apply(
int &index,
int max)
56 }
else if (index < 0) {
59 int m = index - n * max;
60 if (n & 1) index = max - m;
62 }
else if (index > max) {
65 int m = index - n * max;
101 #endif // MIRTK_MirrorExtrapolateImageFunction_H