Right-click on the ROI in the Image window, select Intensity Profile
Profiling image data on ROI
cvroiprofile -r 1 multi:=all trstats.n:=1 trstats.sum:=1;
Input/Output
String
The ROI added in the Image window.
Input
ImageLayer
Specifies the input Image layer.
int
Specifies profiling on active ROI or all ROIs on Image.
Option list:
Available when Profile on is set to All ROIs on Image. When there are more than one ROIs and/or multiple frames, it will generate multiple sets of statistics values. This option is used to specify the layout of the statistics values output to the result worksheet.
TreeNode
Specifies which quantity to be computed and output.
See more details in section below.
This option is useful for tiny coordinates ROI. If this option is selected (weight = 1), each pixel is weighted by the area covered by ROI polygon. For example, if a pixel point on the edge of ROI box is half inside ROI and the other half outside ROI, its weight is 0.5. On the other hand, a pixel point at the censter of ROI box will count weight as 1.
When import colorful image, this option supports generating the intensity profile result base on RGB value of each pixel: 0=false, 1=true.
Then use sort variable to control how to sort the output columns.
Available when RGB Profile checkbox is checked. Specifies how to sort the output columns.
Output
ReportData
Specifies the output Worksheet.
This X-Function cvroiprofile is used to profile on ROI and generate a new worksheet to output descriptive statistics values. Refer to this document page for more information.
The trstats tree specifies the descriptive statistics values to be output from cvroiprofile X-Function: 0=false, 1=true.
Syntax: trstats.Treenode:=<value>
Example:
mroiprofile