To create a custom border around input data.
... Function - CreateBorder(data_in, H_border, W_border, border_val)
... Creates a border defined by border size around data_in of value = border_val
... For eg -
... >> a = magic(4);
... >> % To create a [2x4] border of 0s around 'a'
... >> a = CreateBorder(a, 2, 4, 0);
引用格式
AA (2024). CreateBorder (https://www.mathworks.com/matlabcentral/fileexchange/59371-createborder), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2014a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
在 Help Center 和 MATLAB Answers 中查找有关 Region and Image Properties 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 | . |