Example #1
0
        public Pair <int, int> similarPixel(int l, int i, int j, int k)
        {
            knearest_id nfo = m_SimilaritySet[l][i + j * mOwner.stack(l).getWidth()][k];

            if (nfo == null)
            {
                return(new Pair <int, int>(0, 0));
            }
            return(new Pair <int, int>(nfo.i, nfo.j));
        }
Example #2
0
 public bool cmp(knearest_id id)
 {
     return(id.l == l && id.i == i && id.j == j && id.s == s);
 }