1 #include "IndiceTools_CPU.h"
3 /*----------------------------------------------------------------------*\
5 \*---------------------------------------------------------------------*/
7 /*--------------------------------------*\
9 \*-------------------------------------*/
15 * s[0,W*H[ --> i[0,H[ j[0,W[
17 void IndiceTools::toIJ( int s
, int w
, int* ptrI
, int* ptrJ
)
20 *ptrJ
= s
- w
* (*ptrI
);
24 * i[0,H[ j[0,W[ --> s[0,W*H[
26 int IndiceTools::toS(int W
, int i
, int j
)
32 /*----------------------------------------------------------------------*\
34 \*---------------------------------------------------------------------*/