Consider a two-column matrix of integers that can represent regions of interest of a signal. Merge any regions that are separated by four samples or less.
Consider a two-column matrix of integers that can represent regions of interest of a signal. Merge any regions that are separated by four samples or less. The function merges overlapping regions in all cases.
roilims — Region-of-interest limits two-column matrix of positive integers
Region-of-interest limits, specified as a two-column matrix of positive integers. The
ith row of roilims contains nondecreasing
indices corresponding to the beginning and end samples of the ith
region of interest of a signal.
Example: [5 8; 12 20; 18 25] specifies a two-column region-of-interest
matrix with three regions.
roilimsout — Modified region-of-interest limits two-column matrix of positive integers
Modified region-of-interest limits, returned as a two-column matrix of positive integers.
Output limits are returned in sorted order using the sortrows function.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.