Modified the SeededRegionGrowing class to adjust to the 4D data.