Fixed a bug in the grow() function of the SeededRegionGrowing class.