The effects of a phase shift in the reference beam between the recordi
ng of consecutive volume holograms in LiNbO3 are studied. In particula
r a second exposure of a hologram using a phase shift of pi in the ref
erence beam results in its erasure, named coherent erasure, which is s
everal times faster than the erasure with homogeneous illumination, or
incoherent erasure. Using this coherent erasure a part of a hologram
is selectivity removed with almost no degradation of the rest of the i
mage. This is achieved by pi-phase shifted recording of the part of th
e image to be erased. At the same time, the process can be used to wri
te other parts of the hologram. This work shows that this procedure, i
f used as gradual erasure of part of an image, can be applied to image
processing. If total erasure and writing of parts of holograms are pe
rformed, the effect can also be used for performing logical operations
. It is shown also that these effects combined with the angular multip
lexing capability of volume holograms form a high capacity random acce
ss optical memory with some interesting particular features.