Crop a matrix to specified region of interest
Minimum Origin Version Required: 8.0 SR5, updated in 8.5.1
1. mCrop x:=60 y:=40 w:=200 h:=100;
2. mCrop x:=10 y:=10 w:=50 h:=50 om:=[<input>]<new name:=Cropped>;
Please refer to the page for additional option switches when accessing the x-function from script
Input
int
MatrixObject
Output
See the syntax here.
This function crops an image.
If your matrix is in Image Mode, you can drag a rectangle by the button in Tools toolbar, and right-click to crop.
You can also bring up the X-Function dialog (For example, mcrop -d;) to crop an image.
mcrop -d;
mcrop 322 62 224 188;
Keywords:pixels, image, ROI