Frame calculator.
Segment to color