image thumbnail

getEllipseBwImg

version 0.0.1 (1.24 KB) by Hsiao Ming-Chih
plot ellipse binary image

10 Downloads

Updated 29 Oct 2019

View License

imgH = 512;
imgW = 1024;
ellipseBwImg = [];
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 256, 512, 64, 128, 15, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 128, 256, 32, 64, -30, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 256+128, 256, 32, 64, 30, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 512, 256+512, 512, 64, 30, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 512, 256, 64, 512, 0, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 256, 90, 128, 64, 0, ellipseBwImg);
ellipseBwImg = Utility.getEllipseBwImg(imgH, imgW, 87, 685, 512, 30, -45, ellipseBwImg);
figure, imshow(ellipseBwImg)
imwrite(ellipseBwImg, 'ellipseBwImg_1.png')

https://github.com/b9903224/Matlab-utility

Cite As

Hsiao Ming-Chih (2022). getEllipseBwImg (https://www.mathworks.com/matlabcentral/fileexchange/73150-getellipsebwimg), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

+Utility