
Object ids are used in many rule sets. You can use a sorted image object list to give object ids to objects in a structured way.
This short rule set demonstrates in very few steps how object variables can be given to objects starting from bottom left to top right. An image object list is sorted by a feature that contains the sum of the x-position and the y-position, with a weighting factor for one of them that determines the priority (x or y). The ratio of the weighting factors has to be larger than the total image size in pixels. Otherwise, the order of the numbers is not guaranteed.
A simple assign ids algorithm on this sorted image object list will yield a result as shown in the result image (feature view).
Image data courtesy to Ana Merino-Trigo, Sanofi-Aventis.
Comments