Generalized multi-channel scheme for secure image encryption