A two-layer neural network architecture for carrying out optodigital classification operations is proposed. The optical neural network implementation is suitable for pattern recognition and classification into digital format. The neural network is based on an optical correlator, an optoelectronic threshold, and an optodigital encoder. The module needs only one laser light source, and the light propagation from the input to the output is uninterrupted. The output is the class of the input pattern encoded in a digital format. Experimental results using different images and classes are presented. The classification can be changed arbitrarily by changing the encoding mask.