2.2.2.12 mroiprofile


Menu Information

Right-click on the ROI in the Matrix, select Intensity Profile

Brief Information

Profiling matrix data on ROI

Command Line Usage

mroiprofile -r 1 multi:=all trstats.n:=1 trstats.sum:=1;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
roi

Input/Output

MatrixLayer

0

The ROI added in the matrix.

Input Matrix Book imp

Input

MatrixPage

<optional>

Specifies the input matrix book.


Input Matrix Sheet ims

Input

MatrixLayer

<active>

Specifies the input matrix sheet.

Profile on multi

Input

int

0

Specifies profiling on all ROIs on Matrix or active ROI.

Option list:

  • 0=all: All Objects
    Profile on active ROI
  • 1=active: Active Object Only
    Profile on all ROIs on Matrix
Data Layout layout

Input

int

0

When set Profile on all ROIs on Matrix, you can specify the data layout is Matrix Rowwise or ROI Rowise.

Option list:

  • 0=mat
    Matrix Rowwise
  • 1=roi
    ROI Rowwise
Statistics trstats

Input

TreeNode

<unassigned>

Specifies which quantity to be computed and output.

See more details in this page.

Weighted ROI weight

Input

int

0

This option is for tiny coordinates ROI. If this option is selected, each pixel is weighted by the area of the intersection of the pixel rectangle and the ROI polygon.

Option list:

  • 0=false
  • 1=true
RGB Profile rgb

Input

int

0

When import colorful image, this option supports generating the intensity profile result base on RGB value of each cell.

Option list:

  • 0=false
  • 1=true


Then use sort variable to control how to sort the output columns.

Sort Output Columns by sort

Input

int

0

Specifies how to sort the output columns.

Option list:

  • 0=stats:Statistics
    Sort the output columns by statistics first, within each statistics value should be RGB order.
  • 1=rgb:RGB
    Sort by RGB first, within each color should be different Statistics.
Output rd

Output

ReportData

[<new>]

Specifies the output Worksheet.

Description

You can use this X-Function to generate a new matrix from the ROI.

Related X-Functions

mdim, mexpand, mproperty, mreplace, mrotate90, msetvalue, mflip, mtranspose , msmooth


Keywords:new matrix