This file is indexed.

/usr/include/OTB-5.8/otbLabelObjectToPolygonFunctor.txx is in libotb-dev 5.8.0+dfsg-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
/*=========================================================================

  Program:   ORFEO Toolbox
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See OTBCopyright.txt for details.


     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef otbLabelObjectToPolygonFunctor_txx
#define otbLabelObjectToPolygonFunctor_txx


#include "otbLabelObjectToPolygonFunctor.h"

namespace otb
{
namespace Functor
{

template<class TLabelObject, class TPolygon>
bool
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::LexicographicalLineCompare(const LineType&  l1, const LineType& l2)
{
  bool resp = l2.GetIndex()[1] > l1.GetIndex()[1];
  resp = resp
         || (l2.GetIndex()[1] == l1.GetIndex()[1]
             && (l1.GetIndex()[0] + static_cast<long>(l1.GetLength())) < l2.GetIndex()[0]);
  return resp;
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::PolygonType *
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::operator() (LabelObjectType * labelObject)
  {
  // Clear any previous context
  m_CurrentState = DOWN_LEFT;
  m_PositionFlag = LEFT_END;
  m_InternalDataSet.clear();

  m_Polygon = PolygonType::New();

  // Get the internal container
  //LineContainerType lcontainer = labelObject->GetLineContainer();

  // Sort it
  //sort(lcontainer.begin(), lcontainer.end(), &LexicographicalLineCompare);
  //Use the Optimize method
  labelObject->Optimize();
  // Step 1: Fill the internal data set

  // Iterates on the line container
  // typename LineContainerType::const_iterator lIt = lcontainer.begin();
  ConstLineIteratorType lIt = ConstLineIteratorType(labelObject);
  lIt.GoToBegin();
  // Stores the current line
  long currentLine = lIt.GetLine().GetIndex()[1];
  long lineIndex = 0;

  // Push back the first line of runs
  RunsPerLineType firstRunsPerLine;
  m_InternalDataSet.push_back(firstRunsPerLine);

  while ( !lIt.IsAtEnd() )
    {
    // if we are still in the same image line
    if (currentLine == lIt.GetLine().GetIndex()[1])
      {
      m_InternalDataSet.back().push_back(lIt.GetLine());
      }
    else
      {
      ++lineIndex;
      currentLine = lIt.GetLine().GetIndex()[1];
      RunsPerLineType newRunsPerLine;
      newRunsPerLine.push_back(lIt.GetLine());
      m_InternalDataSet.push_back(newRunsPerLine);
      }
    ++lIt;
    }

  // Begin the boundaries tracking procedure
  m_StartingPoint = m_InternalDataSet.at(0).at(0).GetIndex();
  m_LineOffset = m_StartingPoint[1];
  m_CurrentPoint = m_StartingPoint;
  m_CurrentRun.Fill(0);
  m_CurrentLine = 0;

  bool goesOn = true;

  while (goesOn)
    {
    switch (m_CurrentState)
      {
      case UP_RIGHT:
        {
        // First candidate run
        IndexType firstCandidateRun = Within(m_CurrentPoint, m_CurrentLine - 1);
        if (IsRunIndexValid(firstCandidateRun))
          {
          // Second candidate run
          IndexType secondCandidateRun = RightMostLeftEndInside(m_CurrentLine, RightEnd(
                                                                  m_CurrentRun), firstCandidateRun);
          if (IsRunIndexValid(secondCandidateRun))
            {
            // Down-Right case
            m_CurrentRun = secondCandidateRun;
            m_CurrentState = DOWN_RIGHT;
            m_PositionFlag = LEFT_END;
            WalkRight(m_CurrentLine - 1, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          else
            {
            // Up-Right case
            m_CurrentLine--;
            m_CurrentRun = firstCandidateRun;
            m_CurrentState = UP_RIGHT;
            m_PositionFlag = RIGHT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        else
          {
          IndexType secondCandidateRun = LeftMostRightEndInside(m_CurrentLine - 1, RightEnd(m_CurrentRun), m_CurrentRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Up-Left Case
            m_CurrentState = UP_LEFT;
            m_PositionFlag = RIGHT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, RightEnd(secondCandidateRun), m_Polygon, m_CurrentState);
            m_CurrentLine--;
            m_CurrentRun = secondCandidateRun;
            }
          else
            {
            // Down-Left case
            m_CurrentState = DOWN_LEFT;
            m_PositionFlag = LEFT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);
            }
          }
        break;
        }
      case DOWN_LEFT:
        {
        // First candidate run
        IndexType firstCandidateRun = Within(m_CurrentPoint, m_CurrentLine + 1);

        if (IsRunIndexValid(firstCandidateRun))
          {
          // Second candidate run
          IndexType secondCandidateRun = LeftMostRightEndInside(m_CurrentLine, LeftEnd(m_CurrentRun), firstCandidateRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Up-Left case
            m_CurrentRun = secondCandidateRun;
            m_CurrentState = UP_LEFT;
            m_PositionFlag = RIGHT_END;
            WalkLeft(m_CurrentLine + 1, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);
            }
          else
            {
            // Down-Left case
            m_CurrentLine++;
            m_CurrentRun = firstCandidateRun;
            m_CurrentState = DOWN_LEFT;
            m_PositionFlag = LEFT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        else
          {
          IndexType secondCandidateRun = RightMostLeftEndInside(m_CurrentLine + 1, LeftEnd(m_CurrentRun), m_CurrentRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Down-Right case
            m_CurrentRun = secondCandidateRun;
            m_CurrentLine++;
            m_CurrentState = DOWN_RIGHT;
            m_PositionFlag = LEFT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          else
            {
            // Up-Right case
            m_CurrentState = UP_RIGHT;
            m_PositionFlag = RIGHT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        break;
        }
      case DOWN_RIGHT:
        {
        IndexType firstCandidateRun = Within(m_CurrentPoint, m_CurrentLine + 1);

        if (IsRunIndexValid(firstCandidateRun))
          {
          IndexType secondCandidateRun = LeftMostRightEndInside(m_CurrentLine, RightEnd(
                                                                  m_CurrentRun), firstCandidateRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Up-Left case
            m_CurrentState = UP_LEFT;
            m_PositionFlag = RIGHT_END;
            m_CurrentRun = secondCandidateRun;
            WalkLeft(m_CurrentLine + 1, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          else
            {
            // Down-Left case
            m_CurrentLine++;
            m_CurrentRun = firstCandidateRun;
            m_CurrentState = DOWN_LEFT;
            m_PositionFlag = LEFT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        else
          {
          IndexType secondCandidateRun = RightMostLeftEndInside(m_CurrentLine + 1, LeftEnd(m_CurrentRun), m_CurrentRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Down-Right case
            m_CurrentLine++;
            m_CurrentRun = secondCandidateRun;
            m_CurrentState = DOWN_RIGHT;
            m_PositionFlag = LEFT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);
            }
          else
            {
            // Up-Right case
            m_CurrentState = UP_RIGHT;
            m_PositionFlag = RIGHT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        break;
        }
      case UP_LEFT:
        {
        IndexType firstCandidateRun = Within(m_CurrentPoint, m_CurrentLine - 1);

        if (IsRunIndexValid(firstCandidateRun))
          {
          IndexType secondCandidateRun = RightMostLeftEndInside(m_CurrentLine, LeftEnd(m_CurrentRun), firstCandidateRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Down-Right case
            m_CurrentRun = secondCandidateRun;
            m_CurrentState = DOWN_RIGHT;
            m_PositionFlag = LEFT_END;
            WalkRight(m_CurrentLine - 1, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          else
            {
            // Up-Right case
            m_CurrentLine--;
            m_CurrentRun = firstCandidateRun;
            m_CurrentState = UP_RIGHT;
            m_PositionFlag = RIGHT_END;
            WalkRight(m_CurrentLine, m_CurrentPoint, RightEnd(m_CurrentRun), m_Polygon, m_CurrentState);
            }
          }
        else
          {
          IndexType secondCandidateRun = LeftMostRightEndInside(m_CurrentLine - 1, RightEnd(m_CurrentRun), m_CurrentRun);

          if (IsRunIndexValid(secondCandidateRun))
            {
            // Up-Left case
            m_CurrentState = UP_LEFT;
            m_PositionFlag = RIGHT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, RightEnd(secondCandidateRun), m_Polygon, m_CurrentState);
            m_CurrentLine--;
            m_CurrentRun = secondCandidateRun;

            }
          else
            {
            // Down-Left case
            m_CurrentState = DOWN_LEFT;
            m_PositionFlag = LEFT_END;
            WalkLeft(m_CurrentLine, m_CurrentPoint, LeftEnd(m_CurrentRun), m_Polygon, m_CurrentState);

            }
          }
        break;
        }
      }
    goesOn = m_CurrentPoint != m_StartingPoint;
    }

  return m_Polygon;
  }

template<class TLabelObject, class TPolygon>
inline bool
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IsRunIndexValid(const IndexType& index) const
{
  return (index[0] >= 0 && index[1] >= 0);
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::Within(const IndexType& point, unsigned int line) const
{
  unsigned int idx = 0;
  IndexType    resp;
  resp[0] = -1;

  if (line >= m_InternalDataSet.size())
    {
    resp[1] = -1;
    return resp;
    }

  long leftoffset = 0;
  long rightoffset = 0;

  switch (m_PositionFlag)
    {
    case LEFT_END:
      rightoffset = 1;
      break;

    case RIGHT_END:
      leftoffset = -1;
      break;
    }

  typename RunsPerLineType::const_iterator it = m_InternalDataSet.at(line).begin();
  resp[1] = line;

  while (resp[0] < 0 && it != m_InternalDataSet.at(line).end())
    {
    if (point[0] >= (it->GetIndex()[0]) + leftoffset && point[0] <
        (it->GetIndex()[0] + static_cast<long>(it->GetLength())) + rightoffset)
      {
      resp[0] = idx;
      }
    ++idx;
    ++it;
    }
  return resp;
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::LeftEnd(const IndexType& runIndex) const
{
  return m_InternalDataSet.at(runIndex[1]).at(runIndex[0]).GetIndex();
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::RightEnd(const IndexType& runIndex) const
{
  IndexType point = m_InternalDataSet.at(runIndex[1]).at(runIndex[0]).GetIndex();
  point[0] += static_cast<long>(m_InternalDataSet.at(runIndex[1]).at(runIndex[0]).GetLength() - 1);
  return point;
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::RightMostLeftEndInside(unsigned int line, const IndexType& point, const IndexType& run) const
{
  unsigned int idx = 0;
  IndexType    resp;
  resp[0] = -1;

  if (line >= m_InternalDataSet.size())
    {
    resp[1] = -1;
    return resp;
    }

  typename RunsPerLineType::const_iterator it = m_InternalDataSet.at(line).begin();
  resp[1] = line;

  LineType lrun = m_InternalDataSet.at(run[1]).at(run[0]);

  while (resp[0] < 0 && it != m_InternalDataSet.at(line).end())
    {
    /// Index is a the right of point
    if (it->GetIndex()[0] > point[0]
        /// Index is inside run range
        && it->GetIndex()[0] - 1 >= lrun.GetIndex()[0]
        && it->GetIndex()[0] - 1 < lrun.GetIndex()[0] + static_cast<long>(lrun.GetLength()))
      {
      resp[0] = idx;
      }
    ++idx;
    ++it;
    }
  return resp;
}

template<class TLabelObject, class TPolygon>
inline typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::LeftMostRightEndInside(unsigned int line, const IndexType& point, const IndexType& run) const
{
  IndexType resp;
  resp[0] = -1;

  if (line >= m_InternalDataSet.size())
    {
    resp[1] = -1;
    return resp;
    }
  unsigned int idx = m_InternalDataSet.at(line).size() - 1;

  typename RunsPerLineType::const_reverse_iterator it = m_InternalDataSet.at(line).rbegin();
  resp[1] = line;

  LineType lrun = m_InternalDataSet.at(run[1]).at(run[0]);

  while (resp[0] < 0 && it != m_InternalDataSet.at(line).rend())
    {
    /// Index is a the left of point
    if (it->GetIndex()[0] + static_cast<long>(it->GetLength()) <= point[0]
        /// right end is inside run range
        && it->GetIndex()[0] + static_cast<long>(it->GetLength()) >= lrun.GetIndex()[0]
        && it->GetIndex()[0] + static_cast<long>(it->GetLength()) < lrun.GetIndex()[0] +
        static_cast<long>(lrun.GetLength()))
      {
      resp[0] = idx;
      }
    --idx;
    ++it;
    }
  return resp;
}

template<class TLabelObject, class TPolygon>
void
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::WalkLeft(unsigned int line,
           const IndexType& startPoint,
           const IndexType& endPoint,
           PolygonType * polygon,
           const StateType state)
{
   if( vcl_abs(static_cast<long int>(line + m_LineOffset - endPoint[1])) > 1 )
     {
       itkExceptionMacro("End point not with +/-1 line from line")
     }

  typename PolygonType::VertexType::VectorType offset;
  typedef typename PolygonType::VertexType::VectorType::ValueType VectorValueType;
  offset.Fill(itk::NumericTraits<VectorValueType>::Zero);

  switch (state)
    {
    case UP_RIGHT:
      offset[1] = 0.5;
      break;
    case UP_LEFT:
      offset[1] = 0.5;
      break;
    case DOWN_RIGHT:
      offset[1] = -0.5;
      break;
    case DOWN_LEFT:
      offset[1] = -0.5;
      break;
    }

  switch (m_PositionFlag)
    {
    case LEFT_END:
      offset[0] = -0.5;
      break;
    case RIGHT_END:
      offset[0] = 0.5;
      break;
    }
  typename PolygonType::VertexType newPoint;

  m_CurrentPoint = startPoint;
  m_CurrentPoint[0] -= 1;

  if (m_CurrentPoint[0] > endPoint[0] + 1)
    {
    m_CurrentPoint[1] = line + m_LineOffset;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));
    }

  // if the end point is not on line n, add an intermediate point
  if (static_cast<int>(line + m_LineOffset) != endPoint[1] && m_CurrentPoint[0] > endPoint[0] + 1)
    {
    m_CurrentPoint[0] = endPoint[0] + 1;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));
    }

  if (m_CurrentPoint != endPoint)
    {
    m_CurrentPoint = endPoint;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));

    }
}

template<class TLabelObject, class TPolygon>
void
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::WalkRight(unsigned int line,
            const IndexType& startPoint,
            const IndexType& endPoint,
            PolygonType * polygon,
            const StateType state)
{

   if( vcl_abs(static_cast<long int>(line + m_LineOffset - endPoint[1])) > 1 )
     {
       itkExceptionMacro("End point not with +/-1 line from line")
     }

  typename PolygonType::VertexType::VectorType offset;
  typedef typename PolygonType::VertexType::VectorType::ValueType VectorValueType;
  offset.Fill(itk::NumericTraits<VectorValueType>::Zero);

  switch (state)
    {
    case UP_RIGHT:
      offset[0] = 0.5;
      offset[1] = 0.5;
      break;
    case UP_LEFT:
      offset[0] = -0.5;
      offset[1] = 0.5;
      break;
    case DOWN_RIGHT:
      offset[0] = 0.5;
      offset[1] = -0.5;
      break;
    case DOWN_LEFT:
      offset[0] = -0.5;
      offset[1] = -0.5;
      break;
    }

  typename PolygonType::VertexType newPoint;

  m_CurrentPoint = startPoint;
  m_CurrentPoint[0] += 1;

  if (m_CurrentPoint[0] < endPoint[0] - 1)
    {
    m_CurrentPoint[1] = line + m_LineOffset;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));
    }

  // if the end point is not on line n, add an intermediate point
  if (static_cast<int>(line + m_LineOffset) != endPoint[1] && m_CurrentPoint[0] < endPoint[0] - 1)
    {
    m_CurrentPoint[0] = endPoint[0] - 1;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));
    }

  if (m_CurrentPoint != endPoint)
    {
    m_CurrentPoint = endPoint;
    newPoint = m_CurrentPoint;
    newPoint += offset;
    polygon->AddVertex(IndexToPoint(newPoint));
    }
}

// Apply origin and spacing
template<class TLabelObject, class TPolygon>
typename LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::VertexType
LabelObjectToPolygonFunctor<TLabelObject, TPolygon>
::IndexToPoint(const VertexType& index) const
{
  VertexType resp;

  // Apply origin and spacing
  //resp[0] = (index[0] - m_StartIndex[0]) * m_Spacing[0] + m_Origin[0];
  //resp[1] = (index[1] - m_StartIndex[1]) * m_Spacing[1] + m_Origin[1];
  resp[0] = index[0] * m_Spacing[0] + m_Origin[0];
  resp[1] = index[1] * m_Spacing[1] + m_Origin[1];

  return resp;
}

} // end namespace Functor

} // end namespace otb

#endif