The invention provides a semiconductor device with high reliability and smaller size and a method of manufacturing the same. In one method, the low viscosity is caused by excess solvent which is then blotted or otherwise removed so that the viscosity of the paste is increased. An inverse wavelet transform is performed on the transformed wavelet coefficients for each length scale to obtain a reconstructed volume, and the reconstructed volume is analyzed for the existence of polyps.