1. A two-dimensional coding method comprising: using a two-dimensional image containing a plurality of reference pixels each having a different brightness and data pixels representing data in accordance with brightness; and coding a binary sequence of plural bits to be recorded as a hologram by matching the brightness level of the data pixel based on the brightnesses of the plurality of reference pixels.