1. Introduction
Shape reconstraction from images is one of the challenge in the field of the image processing and the computer vision. The shape from focus (SFF) is a shape estimation method that enables to estimate the object shape from a mono-camera, and is mainly used in the field of microscope where the object-distance
camera-to-object distance
is very short and difficult to set the stereo cameras for well-known stereo-matching. The first SFF method was presented by [?], the main idea of the SFF is using a relationship between the focus level and the object distance from the focused plane. The conventional works proposed to estimate the shape from image-sequence that has been taken while changing the focused plane on the object gradually. In [?, ?], Laplacian oparator is used to evaluate the high frequency components of spatial domain, to know the focus level at each pixel, whereas, Gray value variance is used in [?]. To observe the transition of the focus level for z-direction(depth), the SFF enables to detect the focal distance at each pixel which is related by the object distance. Nevertheless conventional methods supposed that an object has rough and uniform texture on the surface, they were not able to estimate the shape in thin textures areas and edge areas correctly (see Fig. 1). While these areas are often included in the photo picture, our research is motivated to improve accuracy of the measurement of the focus level (called the focus measure) onto those areas. To address the above problems, we propose a method to use the color segmentation and the bilateral filtering.