A self-feedback ratio-memory cellular nonlinear network (SRMCNN) with the B template and the modified Hebbian learning algorithm to learn and recognize the image patterns is proposed and analyzed. In the proposed SRMCNN, the coefficients of space-variant B templates are determined from the exemplar patterns during the learning period. The weights are the ratio of the absolute summation of its neighborhood weights in the B templates was stored in the associative memory. This SRMCNN can recognize the learned patterns with distinct white-black noise and output the correct patterns. The Matlab and HSPICE software has been simulated the operation of the proposed SRMCNN. It is shown that the 18×18 SRMCNN can successfully learned and recognized 8 incompletely noisy patterns. As compared to other learnable CNN as associate memories, the proposed SRMCNN could improve pattern learning and recognition capability. The architecture can be implemented in nano-CMOS technology for giga-scale learning system in the real-time applications.