Always take care that m_Segmentation is valid.
This sometimes cause a wrong check regarding the image dimension