Particle Analysis Report
Description
Returns the number of particles detected in a binary image and an array of reports containing the most commonly used particle measurements. Type : polymorphic.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8.
Documentation illustration (illustration unavailable in the archive). Connectivity 4/8 (8) : boolean, specifies the type of connectivity used by the algorithm for particle detection. The connectivity mode directly determines whether an adjacent pixel belongs to the same particle or a different particle.
-
- True : particle detection is performed in connectivity mode 8
- False : particle detection is performed in connectivity mode 4
Output parameters
Documentation illustration (illustration unavailable in the archive). Number Of Particles : integer, indicates the number of particles detected in the image.
Documentation illustration (illustration unavailable in the archive). Region Reports : array, returns a set of uncalibrated pixel measurements from the detected particles.
Documentation illustration (illustration unavailable in the archive). Area : float, is the area of the particle.
Documentation illustration (illustration unavailable in the archive). Number of Holes : float, is the number of holes in the particle.
Documentation illustration (illustration unavailable in the archive). Bounding Rect : cluster, is the smallest rectangle with sides parallel to the x-axis and y-axis that completely encloses the particle.
Documentation illustration (illustration unavailable in the archive). Center of Mass : cluster, is the point representing the average position of the total mass of the particle assuming every point in the particle has a constant density. Center of Mass may be located outside the particle if the particle is not convex.
Documentation illustration (illustration unavailable in the archive). Orientation : float, is the angle of the line passing through the particle center of mass with the lowest moment of inertia.
Documentation illustration (illustration unavailable in the archive). Dimensions : cluster, indicates the width and height of Bounding Rect.
Documentation illustration (illustration unavailable in the archive).
Examples
All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Computer Vision library to run it).
