20060113-Synthesizing images using simple equations
来源:互联网 发布:谷歌翻译 mac 编辑:程序博客网 时间:2024/06/06 00:18
原文:http://blogs.mathworks.com/steve/2006/01/13/synthesizing-images-using-simple-equations/
MATLAB functions featured: meshgrid, cart2pol
Image Processing Toolbox functions featured: imshow
Concentric rings
x = linspace(-pi, pi, 201);% If you pass meshgrid only one vector, it uses that vector for both the x% and the y coordinates.[xx, yy] = meshgrid(x);A = 10;I = sin(A*(xx.^2 + yy.^2));% Specify the range -1 to 1 when displaying the image.imshow(I, [-1 1])
Using polar coordinates
If you want to construct an image from a function of polar coordinates, use cart2pol in conjunction with meshgrid.
[xx, yy] = meshgrid(-125:125);[theta, R] = cart2pol(xx, yy);I = sin(50*theta);imshow(I, [-1 1])
函数 cart2pol 是分别把 (xx(1, 1), yy(1, 1)), (xx(1, 2), yy(1, 2)), ..., (xx(n, n), yy(n, n)),为坐标的笛卡尔坐标转换为极坐标。即把对应点的坐标转换为极坐标。
0 0
- 20060113-Synthesizing images using simple equations
- UVa11565 - Simple Equations
- UVa 11565 - Simple Equations
- Loading Images Asynchronously using NSInvocationOperation
- Blur Images Efficiently using Renderscript
- Equations
- Equations
- Equations
- how to create images using gdal
- how to create images using gdal
- Loading Images Asynchronously on iPhone using NSInvocationOperation
- USING VECTOR IMAGES IN XCODE 6
- How to Make Circle Images using CSS
- Capture images using V4L2 on Linux
- simple model fitting using R
- Simple Packet Sniffer using Java
- images
- images
- 正则表达式初步_分散字符串
- 拥有尊严 (愿与君共勉)
- 史上最强视频网站真实地址解析
- iis6+php 环境搭建
- POJ-3613-Cow Relays
- 20060113-Synthesizing images using simple equations
- 实验十五_安装新的int 9中断例程
- 经典算法之计数排序
- 快速排序算法
- 选择沉默(愿与君共勉)
- 02-05正则表达式进阶_展开串
- 1009.二叉搜索树
- Java访问修饰符
- 一个想了好几天的问题——关于8086cpu自己编写9号中断不能单步的问题