Extract green channel function