2.2.2.10 mroi2mat


Menu Information

Right-click on the ROI in the Matrix, select Create New

Brief Information

Create a new Matrix sheet with data copying from inside ROI.

Command Line Usage

1. mroi2mat quantity:=active;

2. mroi2mat -r 1 quantity:=stats trstats.n:=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.

Create For quantity

Input

int

0

Specifies the new matrix is created for.

Option list:

  • 0=Radio:all:All Objects
    Copy data in all objects of the matrix sheet.
  • 1=active:Active Object Only
    Copy data in the active object of the matrix sheet.
  • 2=stats:Statistics
    Create new matrix with the statistics value of the inside ROI from all objects.
Statistics trstats

Input

TreeNode

<unassigned>

Specifies which quantity to be computed and output.

See more details in this page.

Output Matrix oms

Output

MatrixObject

<input>

Specifies the output matrix.

See the syntax here.

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