This ticket is a continuation of T12691.
The rendering of binary segmentation in binary outline mode is currently very slow. A huge amount of time is spent in the method CreateOutlinePolyData() as it accesses all pixels using 'random access'. This is slow and should be changed to use a normal iterator.