imPixelLine and imCircle

版本 1.0.0.0 (108.1 KB) 作者: sun peng
pixel by pixel version of imline and circle version of imrect
1.6K 次下载
更新时间 2006/12/15

查看许可证

m_pix_line draws a "pixel by pixel" imline and im_circle draws a "circle version" of imrect.They are adopted from imline and imrect, respectively.
Both of them are dragable and extensible(add callback, contrait function, etc.)

Refer to demo.htm on how to install them.

They are easy to use:

for example:
------------
figure, imshow('cameraman.tif')
h = im_circle(gca, [110,60], 30);
api = iptgetapi(h);
api.setColor([1 0 0]);

This will draw a circle centered at (110,60) with radius 30

for another example:
--------------------
imshow('t1_1.bmp');
im_pix_line(imgca,[189, 204],[195,214]);
zoom(6);

This will draw a pixel by pixel line between (189,195) and (204,214)

引用格式

sun peng (2024). imPixelLine and imCircle (https://www.mathworks.com/matlabcentral/fileexchange/13397-impixelline-and-imcircle), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Display Image 的更多信息

Community Treasure Hunt

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

Start Hunting!

im_ext/html/

版本 已发布 发行说明
1.0.0.0