Segmentation tools deriving from SegPreviewTool class overrides a virtual method DoUpdatePreview to work on applying segmentation algorithms.
virtual void DoUpdatePreview(const Image* inputAtTimeStep, const Image* oldSegAtTimeStep, LabelSetImage* previewImage, TimeStepType timeStep) = 0;
However, the input parameters inputAtTimeStep is always single channel even if the loaded image on the workbench is 2D RGB.
ie. inputAtTimeStep->GetNumberOfChannels() = 1