Hi, what would be the optimal approach to store in the std::vector pixels surrounding the center pixel in the neighborhood? The neighborhood can be of any radius R and dimension D, so the length of the vector is a D^3. Thanks in advance for help. Martin