Center line extraction for cooling