-#if ITK_VERSION_MAJOR < 4
- typename BallType::ConstIterator nit;
- unsigned idx = 0;
- for (nit = ball.Begin(); nit != ball.End(); ++nit, ++idx)
- {
- if (*nit)
- {
- it.ActivateOffset(it.GetOffset(idx));
- }
- else
- {
- it.DeactivateOffset(it.GetOffset(idx));
- }
- }
-#else