Robust breathing signal extraction from cone beam CT projections based on adaptive and global optimization techniques