Learning Equivalent Input Channel Mappings And Generalized Features For Pattern Transfer