ellipseMatrix(y0, x0, a, b, theta, im, c1, c2, pInterp)
Set the elements of the matrix im which are in the interior of the
ellipse E to the value 'c1'. The ellipse E has center (y0, x0), the
major axis = a, the minor axis = b, and theta is the angle made by the
major axis with the orizontal axis.
ret = ellipseMatrix(y0, x0, a, b, theta, im, color)
ret is a matrix of the same size as the matrix im.
The input parameters c2 and pInterp are optional. If they are present
the ellipse will have a smoother border (of size pInterp pixels) with
variations of color between c1 and c2.
Function: ellipseMatrix
Version: 1.2
% October 14, 2014
% Author: Nicolae Cindea
引用格式
Nicolae Cindea (2024). ellipseMatrix(y0, x0, a, b, theta, im, c1, c2, pInterp) (https://www.mathworks.com/matlabcentral/fileexchange/17499-ellipsematrix-y0-x0-a-b-theta-im-c1-c2-pinterp), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!