Optical implementation of general binary cellular automata including r
egular and hybrid cellular automata is proposed, which is based on opt
ical neighborhood logic operations. All of 256 local rules of elementa
ry cellular automata can be performed all optically by simply programm
ing the structure of decoding mask. The optical processor can carry mu
ltiple-instruction multiple-data processing, so it is flexible to be u
sed for the design of optical computing systems. The simulated experim
ents are given. Finally, optical implementation of 2-D cellular automa
ta is discussed.