Readonly
heightReadonly
idID of the ROI. Positive for white ROIs and negative for black ones.
Readonly
originOrigin of the ROI. The top-left corner of the rectangle around the ROI relative to the original image.
Readonly
surfaceSurface of the ROI.
Readonly
widthWidth of the ROI.
Computes the diameter of a circle of equal projection area (EQPC). It is a diameter of a circle that has the same surface as the ROI.
eqpc
value in pixels.
This is not a diameter in its actual sense but the common basis of a group of diameters derived from the distance of two tangents to the contour of the particle in a well-defined orientation. In simpler words, the method corresponds to the measurement by a slide gauge (slide gauge principle). In general it is defined as the distance between two parallel tangents of the particle at an arbitrary angle. The minimum Feret diameter is often used as the diameter equivalent to a sieve analysis.
The maximum and minimum Feret Diameters.
Computes fill ratio of the ROI. It is calculated by dividing ROI's actual surface over the surface combined with holes, to see how holes affect its surface.
Fill ratio value.
Computes the surface of the ROI, including the surface of the holes.
Surface including holes measured in pixels.
Number of holes in the ROI and their total surface. Used to calculate fillRatio.
The surface of holes in ROI in pixels.
Returns an array of ROIs IDs that are included in the current ROI. This will be useful to know if there are some holes in the ROI.
InternalIDs.
Computes the minimum bounding rectangle. In digital image processing, the bounding box is merely the coordinates of the rectangular border that fully encloses a digital image when it is placed over a page, a canvas, a screen or other similar bidimensional background.
The minimum bounding rectangle.
Computes the diameter of a circle that has the same perimeter as the particle image.
Ped value in pixels.
Perimeter of the ROI. The perimeter is calculated using the sum of all the external borders of the ROI to which we subtract: (2 - √2) * the number of pixels that have 2 external borders 2 * (2 - √2) * the number of pixels that have 3 external borders
Perimeter value in pixels.
Calculates and caches the number of sides by which each pixel is touched externally.
An object which tells how many pixels are exposed externally to how many sides.
The solidity describes the extent to which a shape is convex or concave. The solidity of a completely convex shape is 1, the farther the it deviates from 1, the greater the extent of concavity in the shape of the ROI.
Solidity value.
Computes sphericity of the ROI. Sphericity is a measure of the degree to which a particle approximates the shape of a sphere, and is independent of its size. The value is always between 0 and 1. The less spheric the ROI is the smaller is the number.
Sphericity value.
Return an array with the coordinates of the pixels that are on the border of the ROI. The points are defined as [column, row].
Optional
options: GetBorderPointsOptionsGet border points options.
The array of border pixels.
Generates a mask of an ROI. You can specify the kind of mask you want using the kind
option.
Optional
options: GetMaskOptionsGet Mask options.
The ROI mask.
Generator function to calculate point's coordinates.
controls whether coordinates should be relative to ROI's point of origin
(relative), or relative to ROI's position on the Image/Mask (absolute).
Coordinates of each point of ROI.
A JSON object with all the data about ROI.
All current ROI properties as one object.
Height of the ROI.