A method for analyzing the quality and quantity of bubbles or droplets of a dispersed phase in a construction material said method being used on construction materials before or during curing of said material while in a non-solid state with the dispersed phase being entrapped therein, wherein the analyzing includes the steps of: - applying a first side of an at least partially transparent plate in contact with a sample of said construction material to make a surface of said sample visible through said transparent plate; - illuminating said surface of said sample through said plate from an opposite second side of said plate with at least one light source; - providing a photosensitive sensor on said second side of said plate for receiving light reflected from said sample through said transparent plate, - receiving from said photosensitive sensor electrical signals corresponding to said received reflected light and rendering from said electrical signals a visual representation of said surface of said sample using an imaging device; - analyzing said visual representation with a computer system functionally connected to said imaging device to at least: - identify bubbles or droplets of said dispersed phase from said surface of the sample by a spatial illumination encoding of the sample; - determine the size and location of identified bubbles or droplets of said dispersed phase; and - computing an indication of the quality of said construction material based on the size and distribution of the identified bubbles or droplets of said dispersed phase in said sample, characterized in illuminating said sample with at least two light sources, which have different colors, from different directions. - applying a first side of an at least partially transparent plate in contact with a sample of said construction material to make a surface of said sample visible through said transparent plate; - illuminating said surface of said sample through said plate from an opposite second side of said plate with at least one light source; - providing a photosensitive sensor on said second side of said plate for receiving light reflected from said sample through said transparent plate, - receiving from said photosensitive sensor electrical signals corresponding to said received reflected light and rendering from said electrical signals a visual representation of said surface of said sample using an imaging device; - analyzing said visual representation with a computer system functionally connected to said imaging device to at least: - identify bubbles or droplets of said dispersed phase from said surface of the sample by a spatial illumination encoding of the sample; - determine the size and location of identified bubbles or droplets of said dispersed phase; and - identify bubbles or droplets of said dispersed phase from said surface of the sample by a spatial illumination encoding of the sample; - determine the size and location of identified bubbles or droplets of said dispersed phase; and - computing an indication of the quality of said construction material based on the size and distribution of the identified bubbles or droplets of said dispersed phase in said sample,