the easiest way to store internal images is to keep track of the splits at each direction. Then, std::vector< InternalImagesTabular > is a tab of size ImageDimension-1 and each InternalImagesTabular contains intermediate images. Internal images are used for multiresolution case only.