Generalized CNN: potentials of a CNN with non-uniform weights