A light transmission technique has been developed for measurement of the local porosity in two-dimensional gas-fluidized beds. The principles of liquid-solid fluidization and vibrofluidization were employed to perform the necessary calibration. Time-averaged porosity profiles have been measured in a thin two-dimensional gas-fluidized bed with a central rectangular jet. These profiles were predicted satisfactorily with a previously developed first principles hydrodynamic model, without the use of any fitted parameters. The hydrodynamic model is based on a two-fluid model approach in which both phases are considered to be continuous and fully interpenetrating.