1. The image segmentation method comprising of search for an optimum of the cost functions, wherein: the search is carried out at an N-number of image detail levels, from coarser to finer; at each image detail level the image is divided (segmented) into regions; each region is assigned a single segmentation value by means of an n-number of successive iterations; at each iteration the value of the cost function for the seams at the region boundaries is calculated for different versions of image segmentation; for every region a segmentation value is chosen which optimizes the combination of the cost functions of the seams and data.