Systems and methods for determining object perimeter size in pixelated digital images

Vectorized operations with matrix shifting and geometric corrections provide accurate and efficient perimeter size determination in pixelated digital images, addressing the trade-off between speed and accuracy in existing methods and enhancing object classification precision.

WO2026241414A1PCT designated stage Publication Date: 2026-11-19MOLECULAR DEVICES LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/US2026/028034
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-14
Filing Date
2026-05-13
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

Existing methods for calculating the perimeter size of objects in pixelated digital images, particularly small biological structures, either prioritize speed over accuracy or accuracy over speed, leading to inaccurate object classification and research conclusions.

Method used

The use of vectorized operations, including matrix shifting and geometric-based corrections, to accurately determine the perimeter size of pixelated objects while maintaining computational efficiency, minimizing pixel-by-pixel processing.

Benefits of technology

Achieves fast and accurate perimeter calculations, reducing errors in object classification and enabling precise morphological measurements for biological structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US2026028034_19112026_PF_FP_ABST
    Figure US2026028034_19112026_PF_FP_ABST
Patent Text Reader

Abstract

Systems and methods for determining perimeter size of an object in a pixelated digital image. The systems and methods may be used for determining the perimeter sizes of small objects in microscopy images. The small objects may be small biological structures such as cellular structures. The resulting calculated perimeter sizes may be used to aid in analyzing the biological structures. The systems and methods use vectorized operations, including matrix shifting operations and geometric corrections, that achieve fast and accurate perimeter calculations. The techniques described herein provide mathematically exact perimeter calculations while maintaining computational efficiency through vectorized operations that minimize pixel-by-pixel processing.
Need to check novelty before this filing date? Find Prior Art

Description

Docket No. 18876.0121WOU1SYSTEMS AND METHODS FOR DETERMINING OBJECT PERIMETER SIZE IN PIXELATED DIGITAL IMAGESCross-Reference To Related Application

[0001] This application is being filed as a PCT International application and claims the benefit of and priority to U.S. Provisional Application No. 63 / 805,727, filed on May 14, 2025, the disclosure of which is hereby incorporated by reference in its entirety.Field

[0002] The subject matter described herein relates to calculating the perimeter sizes of objects in pixelated digital images.Background

[0003] The accurate calculation of the perimeter size of an object in a pixelated digital image is very challenging, especially for small biological structures in pixelated digital microscopy images. In microscopy image analysis, form factor calculations and other morphological measurements that are derived from calculated perimeter sizes of small biological structures are used for object classification. Therefore, minor perimeter measurement errors propagate through dependent calculations and may result in inaccurate object classification and inaccurate research conclusions.

[0004] Some current techniques used for perimeter size calculation of an object in a pixelated digital image use approximations that prioritize computational speed over accuracy and therefore tend to produce inaccurate results. Examples of these fast but inaccurate techniques include “MATLAB perimeter”, “MATLAB bwperim”, “Python scikit-image.measure.perimeter”, and “OpenCV findContours arclength”. Other current techniques used for perimeter size calculation of an object in a pixelated digital image may prioritize accuracy but tend to be very slow. An example of a technique with higher accuracy (compared to the fast but inaccurate techniques) but slow speed is brute force edge-walking that walks pixel by pixel around the perimeter of the object checking theneighborhood of each pixel and accumulating perimeter via custom logic that handles edge-case pixel configurations such as one-pixel wide segments, diagonals, and the like.Summary

[0005] Systems and methods for determining or calculating perimeter size of an object in a pixelated digital image are described. The described systems and methods achieve both high accuracy in the perimeter size determination and fast processing speed. Therefore, dependent calculations that rely on the perimeter size determination are themselves more accurate.

[0006] The systems and methods described herein may be used for determining the perimeter size of any object in any pixelated digital image. In one implementation, the systems and methods described herein may be used for determining the perimeter sizes of small objects in microscopy images. The small objects may be small biological structures including, but not limited to, cells, fragments of cells, sub-cellular structures (e.g. nucleus, cell / plasma membranes, etc.), organoids, and other cellular structures. The resulting calculated perimeter sizes may be used to aid in analyzing the biological structures. For example, form factor calculations and other morphological measurements may be derived from the calculated perimeter sizes and used to classify the biological structures.

[0007] The systems and methods use vectorized operations that achieve fast and accurate perimeter calculations of pixelated objects in pixelated digital images. The vectorized operations may include matrix shifting operations and geometric-based corrections. Unlike approximation-based approaches that sacrifice accuracy for speed, or speed for accuracy, the techniques described herein provide mathematically exact perimeter calculations for all objects while maintaining computational efficiency through vectorized operations that minimize pixel-by-pixel processing.

[0008] For example, the vectorized operations described herein may first identify boundary pixels of the object through differential operations to count all exposed pixel faces and determine an initial perimeter size of the object. A series of matrix shifting operations may then be performed to detect and classify complex pixel configurations inthe pixelated object. Complex pixel configurations may include, but are not limited to, diagonal connections, isolated diagonals, and / or U-shaped patterns. Mathematical corrections may then be applied to the initial perimeter size based on the Euclidean geometry of the complex pixel configurations.

[0009] In one embodiment, a method of determining perimeter size of an object in a pixelated digital image can include binarizing the object in the pixelated digital image to generate a binarized object that includes foreground pixels for the object. As used herein, binarizing the object includes binarizing just the object as well as binarizing the digital image which would also binarize any object(s) in the digital image. Background pixel padding may then be added surrounding the binarized object. A first perimeter size of the object may then be determined using edges between the foreground pixels and the background pixel padding. This is also known as differential edge detection. In addition, an object perimeter size adjustment value may be determined by performing one or more vectorized operations on the foreground pixels. The object perimeter size adjustment value may then be subtracted from the first perimeter size to determine an adjusted perimeter size of the object. The object in the pixelated digital image may then be analyzed based on the adjusted perimeter size.

[0010] Many variations of the method are possible. For example, in another embodiment, a method of determining perimeter size of an object in a pixelated digital image can include determining a first perimeter size of the object using edges between foreground pixels and background pixel padding in a binarized version of the object. In addition, an object perimeter size adjustment value may be determined by performing one or more vectorized operations on the foreground pixels. The object perimeter size adjustment value may be subtracted from the first perimeter size to determine an adjusted perimeter size of the object. The object in the pixelated digital image may then be analyzed based on the adjusted perimeter size.

[0011] In one embodiment, a system that is configured to determine perimeter size of an object in a pixelated digital image can include at least one computer processor and a non-transitory storage device that stores instructions. The instructions, when executed by the at least one computer processor, configure the at least one computer processor toperform a number of operations. For example, the computer processor may binarize the object in the pixelated digital image to generate a binarized object that includes foreground pixels for the object. The processor may also add background pixel padding surrounding the binarized object, and may then determine a first perimeter size of the object using edges between the foreground pixels and the background pixel padding. The processor may then determine an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels, and then subtract the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object. The adjusted perimeter size may then be used, for example by the processor or another processor, to analyze the object in the pixelated digital image.

[0012] In another embodiment, a non-transitory computer readable medium may be provided that has instructions stored thereon that are executable by at least one computer processor. When executed, the instructions may cause the computer processor to binarize an object in a pixelated digital image to generate a binarized object that includes foreground pixels for the object; add background pixel padding surrounding the binarized object; determine a first perimeter size of the object using edges between the foreground pixels and the background pixel padding; determine an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels; and subtract the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object. The adjusted perimeter size may then be used, for example by the processor, to analyze the object in the pixelated digital image.

[0013] In an embodiment, it is preferred that the object not have any internal holes. The presence of one or more internal holes in the object can cause inaccuracies in the perimeter size determination unless suitable action is taken. For example, if the object does include an internal hole(s), the hole(s) may be filled with one or more internal background pixels prior to determining the perimeter size as described herein.Drawings

[0014] Figure 1 depicts an embodiment of a method of determining perimeter size of a pixelated object in a pixelated digital image.

[0015] Figure 2 depicts another embodiment of a method of determining perimeter size of a pixelated object in a pixelated digital image.

[0016] Figure 3 depicts still another embodiment of a method of determining perimeter size of a pixelated object in a pixelated digital image.

[0017] Figures 4A and 4B depict a step in the methods described herein.

[0018] Figure 5 depicts obtaining diagonal pixel pairs in a matrix shifting vectorized operation.

[0019] Figure 6 depicts obtaining horizontal pixel pairs and vertical pixel pairs in a matrix shifting vectorized operation.

[0020] Figure 7 depicts obtaining valid diagonals based on Figures 5 and 6.

[0021] Figures 8A and 8B depict how isolated diagonals are counted in the method described herein.

[0022] Figures 9A and 9B depict how U-shaped pixel configurations are handled in the method described herein.

[0023] Figure 10 depicts a pixel configuration with U-shaped connections that overlap with isolated diagonals.

[0024] Figure 11 depicts an embodiment of a system that can implement the methods described herein.

[0025] Figure 12 is a table that shows the performance and speed of Applicant’s technique described herein compared to conventional perimeter size calculation techniques.Detailed Description

[0026] The following is a detailed description of systems and methods that may be used for determining the perimeter size of any pixelated object in any pixelated digital image. In one implementation, the systems and methods described herein may be used for determining the perimeter sizes of small objects in microscopy images. The small objects may be small biological structures including, but not limited to, cells, fragments of cells, sub-cellular structures (e.g. nucleus, cell / plasma membranes, etc.), organoids, and other cellular structures. The resulting calculated perimeter sizes may be used to aid in analyzing the biological structures, for example classifying the biological structures. For example, form factor calculations and other morphological measurements may be derived from the calculated perimeter sizes and used to classify the biological structures. However, the techniques described herein may be used for determining the perimeter sizes of objects in non-microscopy images.

[0027] The systems and methods described herein use vectorized operations that achieve fast and accurate perimeter calculations of pixelated objects in pixelated digital images. The vectorized operations may include matrix shifting operations and geometric-based corrections. Unlike approximation-based approaches that sacrifice accuracy for speed, or speed for accuracy, the techniques described herein provide mathematically exact perimeter calculations while maintaining computational efficiency through vectorized operations that minimize pixel-by-pixel processing.

[0028] As used in this description and the claims, the word “step” should be construed, unless otherwise indicated by the Applicant, as including a single step or multiple substeps resulting in the step.

[0029] Referring initially to Figure 1, one embodiment of a method 10 of determining perimeter size of a pixelated object in a pixelated digital image is depicted. The method 10 may include an initial step 12 of determining an initial perimeter size of the pixelated object in a pixelated digital image. The pixelated digital image may be, but is not limited to, a microscopy image, and the object may be, but is not limited to, a small biological structure including, but not limited to, a cell, a fragment of a cell, a sub-cellular structure (e.g. nucleus, cell / plasma membrane, etc.), an organoid, and other cellular structures.The pixelated digital image may be provided to the entity that performs step 12 or the pixelated digital image may be generated by the entity that performs step 12 including obtaining the original image, and digitizing the image if the obtained image is not digital, followed by pixelating the digital image. However the pixelated digital image is obtained, the initial perimeter size of the pixelated object is determined. The initial perimeter size of the pixelated object may be determined using the technique described below with respect to Figures 4A and 4B, or using any other suitable technique.

[0030] Once the initial perimeter size of the pixelated object is determined, the method 10 then proceeds to step 14 where an object perimeter size adjustment value is determined. The object perimeter size adjustment value is necessary because the initial perimeter size is overcalculated, for example due to failure to account for special pixel configurations around the perimeter of the object, and needs to be adjusted. The object perimeter size adjustment value may be determined using the techniques described below with respect to Figures 5-10, or using any other suitable technique(s).

[0031] Once the object perimeter size adjustment value is determined, the method 10 then proceeds to step 16 where an adjusted perimeter size of the object is determined. The adjusted perimeter size may be determined by subtracting the object perimeter size adjustment value from the initial determined perimeter size. Because special pixel configurations around the perimeter of the object are accounted for using the techniques described herein, the resulting adjusted perimeter size is much more accurate than the initial determined perimeter size.

[0032] The determined adjusted perimeter size may then be used to analyze the object. For example, the adjusted perimeter size may be used in one or more form factor calculations and / or used to derive one or more other morphological measurements of the object which may then be used to classify the object. Classifying objects in microscopy images based on perimeter size and perimeter-derived measurements is well-known in the art. An example of cell classification is described in https: / / www.sciencedirect.com / science / article / abs / pii / SO 168169911002626. The adjusted perimeter size may also be used, for example, to analyze the object to revealinformation related to cell growth, cell type, cell function, cell metabolism, response to drug or environmental conditions, cell damage or other cellular information.

[0033] Referring to Figure 2, another embodiment of a method 20 of determining perimeter size of a pixelated object in a pixelated digital image is depicted. In the method 20, steps that are the same as or similar to steps in the method 10 of Figure 1 are referenced using the same reference numerals. The method 20 may include an initial step 22 of capturing an image with at least one object in the image. The captured image may be a digital image. Alternatively, if the image is not digital, the image may be digitized to generate the digital image. The image may be, but is not limited to, a microscopy image, and the object may be, but is not limited to, a small biological structure including, but not limited to, a cell, a fragment of a cell, a sub-cellular structure (e.g. nucleus, cell / plasma membrane, etc.), an organoid, and other cellular structures.

[0034] Next, in step 24, if the digital image from step 22 is not already pixelated, the digital image is pixelated. If the digital image resulting from step 22 is already pixelated, then step 24 is optional and can be skipped. If the pixelation step 24 takes place, the entire image including the object in the image may be pixelated.

[0035] Next, in step 26, the object in the image is binarized. Binarization is a conventional digital image processing technique used to convert an image, such as a grayscale image a color image, or a labeled mask image, into a binary image containing two pixel values, 0 and 1, with for example the 0 value representing the background and the 1 value representing the foreground or the object of interest. Next, in step 28, pixel padding is added surrounding the object. Pixel padding is a conventional digital image processing technique where one or more pixels are added around the object. In an embodiment, step 28 may add one pixel of padding around the object.

[0036] Once step 28 is complete, the method 20 may then proceed to steps 12, 14 and 16 which may be as described above for the method 10 in Figure 1. The determined adjusted perimeter size resulting from step 16 may then be used to analyze the object.

[0037] Referring to Figure 3, another embodiment of a method 30 of determining perimeter size of a pixelated object in a pixelated digital image is depicted. In the method 30, steps that are the same as or similar to steps in the method 10 of Figure 1 and the method 20 of Figure 2 are referenced using the same reference numerals. The method 30 may include an initial step 32 of using a microscope to capture a microscope image with at least one object in the microscope image. The captured image may be a digital image. Alternatively, if the image is not digital, the image may be digitized to generate the digital image. The microscope may be any microscope device suitable for capturing digital images of small biological structures or that capture non-digital images that are then digitized. Examples of biological structures include, but not are limited to, cells, fragments of cells, sub-cellular structures (e.g. nucleus, cell / plasma membranes, etc.), organoids, and other cellular structures. Example of microscopes that can be used include, but are not limited to, electron microscopes, scanning electron microscopes, transmission electron microscopes, reflection electron microscopes, x-ray microscopes, scanning probes, scanning acoustic microscopes, light microscopes, epi-fluorescent microscopes, confocal microscopes, bright-field microscopy, widefield microscopy, and selective plane illumination microscopy (SPIM).

[0038] The method 30 then implements steps 24, 26, 28, 12, 14 and 16 which may be as described above with respect to the method 20 in Figure 2 and the method 10 in Figure 1. The determined adjusted perimeter size resulting from step 16 may then be used to analyze the object in step 34.

[0039] The steps in each of the methods 10, 20, 30 may be performed sequentially. Alternatively, one or more of the steps in each of the methods 10, 20, 30 may be performed at the same time as another step, or they may overlap temporally. Further, the sequence of some steps may be altered. For example, it is possible that the object perimeter size adjustment value of step 14 may be determined prior to determining the initial perimeter size of the object of step 12.

[0040] In the methods described herein, if the object in the image includes one or more internal holes, an optional step may be performed where the hole(s) are filled with one or more internal background pixels. This helps to reduce inaccuracies in the resultingperimeter size determination. For example, referring to Figure 2, an optional step 29 is depicted that includes filling any internal holes with one or more background pixels. The optional step 29 is depicted as being performed between pixelating the digital image in step 24 and binarizing the object in step 26. However, the step 29 can be performed at other times in the method such as between step 22 and step 24. A similar optional step can be performed in the method 10 in Figure 1 and the method 30 in Figure 3.

[0041] Referring now to Figures 4A and 4B, one technique for determining an initial perimeter size of an object 40 will now be described. The technique explained with respect to Figures 4A and 4B may be used to implement step 12 in the methods 10, 20, 30 described above in Figures 1, 2 and 3. In this example, the object 40 is depicted as having a simplified three-pixel configuration for sake of simplicity in explaining the concepts. However, other object configurations are possible, including the object configuration depicted in Figures 5 and 6 below.

[0042] The initial perimeter size of the object 40 may be determined by counting the number of exposed faces by detecting edges where pixel values change between foreground and background of the binarized object. This is done by calculating the sum of absolute values of pixel differences along horizontal and vertical axes, where each difference represents an exposed face between foreground and background pixels. So in reference to Figure 4A, there are eight total exposed faces of the pixels which would result in an initial perimeter value of eight (i.e. eight total exposed pixel faces). However, in this simple example, the perimeter value of eight is inaccurate and needs to be corrected since, as depicted in Figure 4B, a portion of the perimeter is more accurately the diagonal 42 between the two pixels. Other complex pixel configurations may also cause inaccuracies in the initial perimeter size determination based solely on exposed faces.

[0043] Therefore, complex pixel configurations in the object are detected and used to obtain one or more corrections for correcting the initial perimeter determination based on exposed faces. Complex pixel configurations may include, but are not limited to, diagonal connections, isolated diagonals, and / or U-shaped patterns. Figures 5-10provide examples of identifying complex pixel configurations and obtaining one or more corrections for correcting the initial perimeter size determination.

[0044] Referring initially to Figure 5, an example of using vectorized matrix shifting operations to determine diagonal pairs of foreground pixels is illustrated. This example starts with a padded binarized object 50 depicted in a 5x6 pixel matrix with foreground pixels 52 (shaded / stippled) for the object and background padding pixels 54 (white) surrounding the object. In Figure 5, all diagonal pairs of foreground pixels need to be determined but looping through and checking every 2x2 block is very slow. Instead, one can use vectorized operations to shift the image indices and extract each diagonal pair of foreground pixels.

[0045] For example, in the upper part of Figure 5, diagonal pixel pairs from top-left to bottom right are identified (see the diagonal broken lines) and processed. In (i), a total of four top-left, bottom right diagonal pairs of pixels are indicated. The top-left, bottomright pixel pairs are obtained by shifting the matrix indices to the bottom right and to the top left. Any overlapping pixels are a diagonal pair. For example, in (ii), the 5x6 matrix is modified by removing the last (bottom) row and right column resulting in a modified 4x5 matrix 50(5ii). In (iii), the 5x6 matrix is modified by removing the first (top) row and the left column resulting in a modified 4x5 matrix 50(5iii). The 4x5 matrix 50(5iv) in (iv) shows the four foreground pixels 52 where the foreground pixels in the matrix 50(5ii) overlap with the foreground pixels in the matrix 50(5iii), with each of the four foreground pixels 52 in matrix 50(5iv) representing a top-left, bottom-right foreground pixel pair.

[0046] Similarly, in the lower part of Figure 5, diagonal pixel pairs from top-right to bottom left are identified (see the diagonal broken lines) and processed. In (v), a total of five top-right, bottom left diagonal pairs of pixels are indicated. The top-right, bottomleft pixel pairs are obtained by shifting the matrix indices to the top right and to bottom left. Any overlapping pixels are a diagonal pair. For example, in (vi), the 5x6 matrix is modified by removing the first (top) row and right column resulting in a modified 4x5 matrix 50(5vi). In (vii), the 5x6 matrix is modified by removing the last (bottom) row and the left column resulting in a modified 4x5 matrix 50(5vii). The 4x5 matrix 50(5 viii)in (viii) shows the five foreground pixels 52 where the foreground pixels in the matrix 50(5vi) overlap with the foreground pixels in the matrix 50(5vii), with each of the five foreground pixels 52 in the matrix 50(5viii) representing a top-right, bottom-left foreground pixel pair.

[0047] However, not all of the diagonal pairs in the matrix 50(5iv) and the matrix 50(5viii) necessarily include perimeter points. The diagonal pairs that are internal to the structure need to be found and excluded. Referring to Figure 6, this starts by getting horizontal and vertical foreground pixel pairs in a manner similar to that described above for the diagonal pixel pairs in Figure 5. Figure 6 shows the same padded binarized object 50 as in Figure 5 depicted in the 5x6 pixel matrix with the foreground pixels 52 (shaded / stippled) for the object and the background padding pixels 54 (white) surrounding the object.

[0048] For example, in the upper part of Figure 6, horizontal pairs are identified and processed. In (i), five total horizontal pairs of pixels are indicated (see the horizontal broken lines). In (ii), the 5x6 matrix is modified by removing the right column resulting in a modified 4x6 matrix 50(6ii). In (iii), the 5x6 matrix is modified by removing the left column resulting in a modified 4x6 matrix 50(6iii). The 4x6 matrix 50(6iv) in (iv) shows the five foreground pixels 52 where the foreground pixels in the matrix 50(6ii) overlap with the foreground pixels in the matrix 50(6iii), with each of the five foreground pixels 52 in matrix 50(6iv) representing a horizontal foreground pixel pair.

[0049] Similarly, in the lower part of Figure 6, vertical pairs are identified and processed. In (v), six total vertical pairs of pixels are indicated (see the vertical broken lines). In (vi), the 5x6 matrix is modified by removing the first (top) row resulting in a modified 5x5 matrix 50(6vi). In (vii), the 5x6 matrix is modified by removing the last (bottom) row resulting in a modified 5x5 matrix 50(6vii). The 5x5 matrix 50(6viii) in (viii) shows the six foreground pixels 52 where the foreground pixels in the matrix 50(6vi) overlap with the foreground pixels in the matrix 50(6vii), with each of the six foreground pixels 52 in the matrix 50(6viii) representing a vertical foreground pixel pair.

[0050] Next, the matrices are shifted to align back with the diagonal pair matrices and the vertical and horizontal matrices. The resulting matrix shows the locations where diagonals are internal to the object and are not part of the perimeter and can be excluded. Then, all locations in the original diagonal matrix that do not exist in the internal diagonal matrix are found. This produces the matrix of valid diagonal pairs to be considered for use in adjusting the initial determined perimeter size.

[0051] For example, referring to Figure 7, the upper part thereof shows a technique for identifying valid top-left, bottom-right diagonal pairs at a perimeter of the object. The 4x6 matrix 50(6iv) of horizontal pairs and the 5x5 matrix 50(6 viii) of vertical pairs are the starting point. The matrix 50(6iv) is shifted by removing the top row to generate a 4x5 matrix 70a to align with the top-left, bottom-right diagonals 4x5 matrix 50(5iv). In addition, the matrix 50(6viii) is shifted by removing the right column to generate a 4x5 matrix 70b to align with the top-left, bottom-right diagonals 4x5 matrix 50(5iv). The word “align” means that the matrices 50(6iv) and 50(6viii) are trimmed by removing specific rows or columns to create matrices (i.e. 70a, 70b) with dimensions matching the matrix 50(5iv). This ensures that corresponding elements in all matrices refer to the same pixel relationships. An AND operation is performed on the two matrices 70a, 70b to generate a new matrix 70c (referred to as an internal diagonals matrix - not part of perimeter). Overlapping foreground pixels 52 in the two matrixes 70a, 70b are indicated in the matrix 70c. These foreground pixels 52 in the matrix 70c indicate internal diagonal pixel pairs that are not part of the perimeter of the object. Any foreground pixels in the original diagonals matrix 50(5iv) and not in the internal diagonals matrix 70c are valid diagonal pairs that form a portion of a perimeter of the object. This is indicated in matrix 70d showing a single valid diagonal pair.

[0052] Similarly, with continued reference to Figure 7, the lower part thereof shows a technique for identifying valid top-right, bottom-left diagonal pairs at a perimeter of the object. The 4x6 matrix 50(6iv) of horizontal pairs and the 5x5 matrix 50(6viii) of vertical pairs are the starting point. The matrix 50(6iv) is shifted by removing the bottom row to generate a 4x5 matrix 70e to align with the top-right, bottom-left diagonals 4x5 matrix 50(5viii). In addition, the matrix 50(6viii) is shifted by removing the left column to generate a 4x5 matrix 70f to align with the top-right, bottom-left diagonals 4x5 matrix50(5viii). The word “align” means that the matrices 50(6iv) and 50(6viii) are trimmed by removing specific rows or columns to create matrices (i.e. 70e, 70f) with dimensions matching the matrix 50(5 viii). This ensures that corresponding elements in all matrices refer to the same pixel relationships. An AND operation is performed on the two matrices 70e, 70f to generate a new matrix 70g (referred to as an internal diagonals matrix - not part of perimeter). Overlapping foreground pixels 52 in the two matrixes 70e, 70f are indicated in the matrix 70g. These foreground pixels 52 in the matrix 70g indicate internal diagonal pairs that are not part of the perimeter of the object. Any foreground pixels in the original diagonals matrix 50(5viii) and not in the internal diagonals matrix 70g are valid diagonal pixel pairs that form a portion of a perimeter of the object. This is indicated in matrix 70h showing two valid diagonal pairs. Figure 7 also depicts the valid diagonal pairs from the matrices 70d, 70h relative to the original padded binarized object 50 confirming the validity of the vectorized matrix shifting processing operations.

[0053] Now that valid diagonals pairs that are not internal to the object have been identified, any special pixel configurations need to be accounted for. For example, referring to Figures 8A and 8B, an object 80 is depicted having an isolated diagonal pixel pair 82. Rather than counting the isolated diagonal pixel pair only once as indicated in Figure 8A, both sides of the isolated diagonal pair 82 need to be counted as indicated by the broken lines in Figure 8B since both sides of the pixels are part of the perimeter. The isolated diagonal(s) can be located using a similar matrix shifting technique as described above that was used to locate the valid diagonals. Since the foreground diagonal pixel pairs have already been found, the matrix can be shifted so that the background diagonal pixel pairs are found. Then, any foreground and background diagonals that are in perpendicular axes and part of the same 4x4 pixel block will increment 1 to the count of isolated diagonals.

[0054] Other special pixel configurations to be accounted for are indicated in Figures 9A, 9B and 10. Figures 9A and 9B depict an object with a U-shaped pixel configuration 90 where two pixels 92a, 92b are spaced from one another and share a pixel bridge 94. With a U-shape, pixels where multiple diagonals intersect are marked. Then the four orientations around each of these candidate pixels are checked and increment the number of U’s for that pixel. For example, for each candidate pixel (ij), four orientations aretested: right-facing, left-facing, top-facing and bottom-facing by looking at its 3 neighbors in that direction: For example, referring to Figure 10, for a positive rightfacing U configuration and assuming pixel 96a is a candidate pixel, the pixel 96b directly to the right of the pixel 96a must be a background pixel (0), the pixel 96c to the top-right must be a foreground pixel ( 1 ), and the pixel 96d to the bottom-right must be a foreground pixel (1). U configurations facing in other orientations can be checked in a similar manner as the positive right-facing U configuration. In a conventional perimeter calculation depicted in Figure 9A, the two diagonals (or v / 2) will be counted twice. In contrast, as depicted in Figure 9B, 1 / 1.25 is counted twice. This results in a much more accurate determination of the perimeter in the U-portion of the U-shape.

[0055] Further, Figure 10 depicts a more complicated pixel configuration 98 where U-shaped connections overlap with isolated diagonals (this may also be referred to as interconnected U-shapes). In Figure 10, the pixel pairs that overlap between U-shaped configurations and isolated diagonals are summed and this sum is subtracted from the isolated diagonal count.

[0056] Next, the initial perimeter size determination (counting all exposed faces in Figure 4A) is corrected using one or more of the special pixel configurations around the perimeter. For example, there may be a U-shape correction, a diagonal correction, and / or an isolated diagonal correction. The initial perimeter size determination may be adjusted by any one or more of these corrections. The example below shows the initial perimeter determination (Pinitiai) being initially adjusted by the U-shaped correction to result in an adjusted perimeter determination (Padjustedi), with that adjusted perimeter determination (Padjustedi) being adjusted by the diagonal correction to result in an adjusted perimeter determination (Padjusted ), with that adjusted perimeter determination (Padjustedi) then being adjusted by the isolated diagonals correction to result in an adjusted perimeter determination (Padjustedi). However, the initial perimeter determination (Pinitiai) may be adjusted by one or more of the corrections and by one or more additional corrections. In addition, the determination of the correction(s) used to adjust the initial perimeter determination may be performed in any order, and the use of the correction(s) to adjust the initial perimeter determination may also be performed in any order.

[0057] U-shape correction

[0058] If U-shapes are present in the pixelated object, the U-shape correction may be used to adjust or correct the initial perimeter size determination using the following:Padjustedi = Pinttial ~ V count x (3 - 2> / l.25), where P is perimeter size and U is the number of U-shaped pixel configurations.

[0059] Diagonal correction

[0060] This equation corrects for valid diagonals that are part of the perimeter of the object.Padjusted2 = Padjustedi ~Dcount X (2 - V2), where P is perimeter size and D is the number of diagonals.

[0061] Isolated diagonals correction

[0062] If isolated diagonals are presented in the pixelated object, the isolated diagonals correction may be used to adjust or correct the initial perimeter size determination using the following:Padjustedz=Padjusted2—2 X Icount X (2 — V2), where P is perimeter size and I is the number of isolated diagonals.

[0063] Figure 11 depicts an example of a system 100 that is configured to determine the perimeter size of an object in the pixelated digital image using the techniques described herein. The system 100 (or just the data processing portion thereof) may also be referred to as an object perimeter size determinator. Figure 11 depicts the system as including a computer 102 and a microscope 104. The computer 102 may be a single computer or an array of computers that are utilized to perform the processing operations described herein. The computer 102 may be a cloud computer(s). Examples of the computer 102 include, but are not limited to, a personal computer, a laptop computer, a tablet computer, a mobile phone, a server computer, or any other computing device(s) capable of performing the processing operations described herein.

[0064] The microscope 104 can be any type of microscope capable of capturing digital images of small biological structures or capturing non-digital images that are then digitized. Biological structures include, but are not limited to, cells, fragments of cells, sub-cellular structures (e.g. nucleus, cell / plasma membranes, etc.), organoids, and other cellular structures. Example of microscopes that can be used include, but are not limited to, electron microscopes, scanning electron microscopes, transmission electron microscopes, reflection electron microscopes, x-ray microscopes, scanning probes, scanning acoustic microscopes, light microscopes, epi-fluorescent microscopes, confocal microscopes, bright-field microscopy, widefield microscopy, and selective plane illumination microscopy (SPIM). The microscope 104 may be connected to the computer 102 via one or more cables, or wirelessly connected to the computer 102.

[0065] The computer 102 can have any configuration allowing the computer(s) to perform the processing and optionally other functions described herein. The illustrated example is depicted as including one or more processors 106 which may be one or more data processors (or central processing unit (CPU)) and one or more graphical processors (GPU). One or more non-transitory storage devices 108 may store data and / or programs such as the original digital image, the pixelated digital image, the binarized object and pixel padding, initial perimeter sizes, correction equations and determined correction values, adjusted perimeter size determinations, object classifications, and other data and / or programs.

[0066] The computer 102 may also include a communication device 110, for example a communication transceiver, that allows communications with and / or from the computer 102. The communications may be wired and / or wireless. The computer 102 may receive images from the microscope 104 via the communication device 110. The computer 102 may also transmit data, such as determined classifications, to a device that is separate from the computer 102 via the communication device 110.

[0067] The computer 102 may also include a display 112a and / or be connected to a display 112b that is physically separate from the computer 102. The display 112a, 112b allows display of data and / or images such as the original digital image, the pixelated image, the binarized object and pixel padding, initial perimeter sizes, determinedcorrection values, adjusted perimeter size determinations, object classifications, and other data and / or images.

[0068] The computer 102 may also include one or more user inputs 114 to allow input of user commands, enter / input data, enter / input images, select an object in the image to determine its perimeter size, possibly manipulate or change the binarized object and pixel padding, and other inputs. The user input(s) 114 may be buttons, computer mouse, inputs incorporated into a touchscreen of the display 112a, 112b, a microphone for receiving audio commands, combinations thereof, and any other form of input.

[0069] The computer 102 may also optionally include what may be referred to as an object analyzer 116, for example a classifier. The object analyzer 116 is configured to utilize the resulting adjusted perimeter size to analyze, for example classify, the object based on the adjusted perimeter size. The object analyzerll6 may be suitable programming language stored in a separate storage device (or stored in the storage device 108) that is executable by a processor (such as the processor 106 or a separate processor) to determine a classification for the object or perform other analysis of the object based on the adjusted perimeter size. Classifying objects and other object analysis in microscopy images based on perimeter size is well-known in the art.

[0070] Figure 12 is a table that shows the performance and speed of Applicant’s technique described herein compared to conventional perimeter size calculation techniques. As can be clearly seen, Applicant’s technique is much more accurate than conventional techniques. In addition, the processing time is negligible or zero for even complex-shaped objects.

[0071] The examples disclosed in this application are to be considered in all respects as illustrative and not limitative. The scope of the invention is indicated by the appended claims rather than by the foregoing description; and all changes which come within the meaning and range of equivalency of the claims are intended to be embraced therein.

Claims

CLAIMS1. A method of determining perimeter size of an object in a pixelated digital image, comprising:binarizing the object in the pixelated digital image to generate a binarized object that includes foreground pixels for the object;adding background pixel padding surrounding the binarized object; determining a first perimeter size of the object using edges between the foreground pixels and the background pixel padding;determining an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels; andsubtracting the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object.

2. The method of claim 1, wherein the one or more vectorized operations comprise determining one or more of:a) diagonal pairs in the foreground pixels;b) horizontal pairs in the foreground pixels;c) vertical pairs in the foreground pixels.

3. The method of claim 2, comprising determining a), b) and c).

4. The method of claim 2, wherein the one or more vectorized operations further comprise performing matrix shifting operations on one or more of a), b) or c).

5. The method of any one of claims 1 to 4, further comprising performing the one or more vectorized operations on the background pixel padding.

6. The method of any one of claims 1 to 5, further comprising identifying U-shaped configurations in the foreground pixels, determining an additional object perimeter size adjustment value based on the identified U-shaped configurations, and subtracting the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

7. The method of any one of claims 1 to 5, further comprising identifying where U-shaped connections overlap with isolated diagonals in the foreground pixels, determining an additional object perimeter size adjustment value based thereon, and subtracting the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

8. The method of any one of claims 1 to 7, wherein the object is a cellular structure, and the pixelated digital image is a microscopy image.

9. The method of any one of claims 1 to 8, further comprising analyzing the object in the pixelated digital image based on the adjusted perimeter size.

10. A system that is configured to determine perimeter size of an object in a pixelated digital image, comprising:at least one computer processor;a non-transitory storage device comprising instructions, which when executed by the at least one computer processor, configure the at least one computer processor to:binarize the object in the pixelated digital image to generate a binarized object that includes foreground pixels for the object;add background pixel padding surrounding the binarized object; determine a first perimeter size of the object using edges between the foreground pixels and the background pixel padding;determine an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels; and subtract the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object.

11. The system of claim 10, wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to execute the one or more vectorized operations to determine one or more of:a) diagonal pairs in the foreground pixels;b) horizontal pairs in the foreground pixels;c) vertical pairs in the foreground pixels.

12. The system of claim 11 , wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to execute the one or more vectorized operations to determine a), b) and c).

13. The system of claim 11 , wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to execute the one or more vectorized operations to perform matrix shifting operations on one or more of a), b) or c).

14. The system of any one of claims 10 to 13, wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to further perform the one or more vectorized operations on the background pixel padding.

15. The system of any one of claims 10 to 14, wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to: identify U-shaped configurations in the foreground pixels; determine an additional object perimeter size adjustment value based on the identified U-shaped configurations; and subtract the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

16. The system of any one of claims 10 to 14, wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to: identify where U-shaped connections overlap with isolated diagonals in the foreground pixels; determine an additional object perimeter size adjustment value based thereon; and subtract the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

17. The system of any one of claims 10 to 16, further comprising a microscope that is configured to capture a digital image of the object which is then pixelated to create the pixelated digital image, and wherein the object is a cellular structure.

18. The system of any one of claims 10 to 17, wherein the instructions, which when executed by the at least one computer processor, configure the at least one computer processor to analyze the object in the pixelated digital image based on the adjusted perimeter size.

19. A non-transitory computer readable medium having instructions stored thereon that are executable by at least one computer processor and when executed cause the at least one computer processor to:binarize an object in a pixelated digital image to generate a binarized object that includes foreground pixels for the object;add background pixel padding surrounding the binarized object; determine a first perimeter size of the object using edges between the foreground pixels and the background pixel padding;determine an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels; andsubtract the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object.

20. The non-transitory computer readable medium of claim 19, wherein the instructions, when executed by the at least one computer processor, cause the at least one computer processor to execute the one or more vectorized operations to determine one or more of:a) diagonal pairs in the foreground pixels;b) horizontal pairs in the foreground pixels;c) vertical pairs in the foreground pixels.

21. The non-transitory computer readable medium of claim 20, wherein the instructions, when executed by the at least one computer processor, cause the at least one computer processor to execute the one or more vectorized operations to determine a), b) and c).

22. The non-transitory computer readable medium of claim 20, wherein the instructions, when executed by the at least one computer processor, cause the at least onecomputer processor to execute the one or more vectorized operations to perform matrix shifting operations on one or more of a), b) or c).

23. The non-transitory computer readable medium of any one of claims 19 to 22, wherein the instructions, when executed by the at least one computer processor, cause the at least one computer processor to: identify U-shaped configurations in the foreground pixels; determine an additional object perimeter size adjustment value based on the identified U-shaped configurations; and subtract the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

24. The non-transitory computer readable medium of any one of claims 19 to 22, wherein the instructions, when executed by the at least one computer processor, cause the at least one computer processor to: identify where U-shaped connections overlap with isolated diagonals in the foreground pixels; determine an additional object perimeter size adjustment value based thereon; and subtract the additional object perimeter size adjustment value from the first perimeter size or from the adjusted perimeter size.

25. The non-transitory computer readable medium of any one of claims 19 to 24, wherein the instructions, when executed by the at least one computer processor, cause the at least one computer processor to: analyze the object in the pixelated digital image based on the adjusted perimeter size.

26. A method of determining perimeter size of an object in a pixelated digital image, comprising:determining a first perimeter size of the object using edges between foreground pixels and background pixel padding in a binarized version of the object;determining an object perimeter size adjustment value by performing one or more vectorized operations on the foreground pixels; andsubtracting the object perimeter size adjustment value from the first perimeter size to determine an adjusted perimeter size of the object.

27. The method of claim 26, further comprising performing the one or more vectorized operations on the background pixel padding.

28. The method of claim 26 or claim 27, further comprising analyzing the object in the pixelated digital image based on the adjusted perimeter size.