An optodigital position converter based on a Dammann grating is proposed. The converter is based on a diffraction grating with a high diffraction efficiency coupled with a binary encoding mask. The module permits parallel processing of a scene so that one can extract the position of a correlation peak. Compression of the information is also performed. The binary output is compatible with digital systems.