1. An analysis system for detection of defects within an inspection image of an inspected object, the inspection image comprising multiple image parts, the system comprising: a computerized anchor processing module configured to obtain multiple anchor locations with respect to the inspection image; a computerized segmentation module operatively coupled to the computerized anchor processing module, configured to segmentize the inspection image, the segmentizing comprising: based on the multiple anchor locations, associating each given image part with one or more mask-segments of a segmentation mask, wherein the segmentation mask represents a pattern of interest and the mask-segments represent areas of interest within the pattern of interest; for each given image part, using the one more more mask-segments associated with the given image part for assigning the given image part to a respective image segment, assigning to be provided in accordance with predefined segmentation rules which define correspondence between mask-segments and image segments; and a defect detection processor operatively coupled to the computerized segmentation module, configured to determine a presence of a defect in a given image part of inspection image at least by assessing each pixel in the given image part based on: (a) a result of a comparison of the given image part to correlative data of a reference image, and (b) a decision rule which depends on the image-segment assigned to the given image part.