roialign
Description
The ROI align operation pools a rectangular ROI into fixed sized bins without quantizing the grid points to the nearest pixel. The function uses bilinear interpolation to infer the value at each grid point.
Given input data of size [H
W
C
N], where C is the number of channels and
N is the number of observations, the pooled deep learning data has size
[h
w
C
sum
(M)], where h and
w are the specified output size. M is a vector of
length N and M(i) is the number of
ROIs associated with the i-th observation.
Note
To perform ROI pooling within a Layer
(Deep Learning Toolbox) array, use
roiAlignLayer
.
This function requires Deep Learning Toolbox™.
performs a pooling operation along the spatial dimensions of the input
dlY
= roialign(dlX
,boxes
,outputSize
)X
for each bounding box in boxes
. The outputs,
Y
, are of size outputSize
.
specifies additional name-value arguments.dlY
= roialign(dlX
,boxes
,outputSize
,Name=Value
)
Examples
Input Arguments
Output Arguments
More About
Extended Capabilities
Version History
Introduced in R2021b
See Also
Objects
dlarray
(Deep Learning Toolbox)
Functions
Topics
- Get Started with Object Detection Using Deep Learning
- Deep Learning in MATLAB (Deep Learning Toolbox)
- List of Functions with dlarray Support (Deep Learning Toolbox)