A method and apparatus for forming an overall image of an object from a plurality of images. Each image includes three-dimensional data and color data and is segmented based on the color data to identify a first region with hard tissue and a second region with soft tissue. For each image, first and second weighting factors may be assigned. Points in the second region with a larger distance to a corresponding proximate part of the first region may have a smaller second weighting factor than a point with a smaller distance to a corresponding proximate part of the first region. The second weighting factor may be variable, with its value dependent upon a value of a first area section corresponding to the first region.