Microscopy-image analysis provides precious information on size and structure of colloidal aggregates and agglomerates. The structure of colloids is often characterized using the mass fractal dimension 𝑑 𝑓 , which is different from the twodimensional (2D) fractal dimension 𝑑 𝑝 that can be computed from microscopy images. In this work, we propose to use a recent morphological aggregation model to find a relationship between 2D image fractal dimension and 3D mass fractal dimension of aggregates and agglomerates. Our case study is represented by scanning transmission electron microscopy images of boehmite colloidal suspensions. The behaviour of the computed 𝑑 𝑓 at different acid and base concentration shows a fair agreement with the results of small angle x-ray scattering and with the literature, enabling to use the 𝑑 𝑓 versus 𝑑 𝑝 relationship to study the impact of the composition of the colloidal suspension on the density of colloidal aggregates and agglomerates.