、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
顺便复习一下直角坐标系和极坐标系
http://zh.wikipedia.org/wiki/%E6%9E%81%E5%9D%90%E6%A0%87%E7%B3%BB
http://zh.wikipedia.org/wiki/%E7%9B%B4%E8%A7%92%E5%9D%90%E6%A0%87%E7%B3%BB
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
matlab6.5
设置搜索路径
file/setpath

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
2d画图
x=-pi:pi/20:pi;%左边界-pi,步长pi/20,右边界pi
y=sin(x)/x;
plot(x,y);%画图
grid on;%显示网格

google绘图
y=sin(x)/x
http://www.google.com.hk/#hl=zh-CN&newwindow=1&safe=strict&site=&source=hp&q=y%3Dsin%28x%29%2Fx&oq=y%3Dsin%28x%29%2Fx&aq=f&aqi=&aql=&gs_l=hp.3...3354l9468l0l9765l10l10l0l0l0l0l0l0ll0l0.frgbld.&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=3c699164da2f212&biw=1366&bih=586

y=ln(x) 自然对数函数
http://www.google.com.hk/search?client=safari&rls=en&q=y=ln(x)&ie=UTF-8&oe=UTF-8

y=log(x) 常用对数函数
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=safari&rls=en&q=y%3Dlog%28x%29&oq=y%3Dlog%28x%29&aq=f&aqi=&aql=&gs_l=serp.3...6477l10669l0l10869l14l11l0l0l0l0l0l0ll0l0.frgbld.

y=exp(x) 即y=e^x
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=safari&rls=en&biw=1366&bih=651&q=y%3Dexp+%28x%29&oq=y%3Dexp+%28x%29&aq=f&aqi=&aql=&gs_l=serp.3...1460l3262l0l3710l8l7l0l0l0l0l0l0ll0l0.frgbld.

y=7^x 指数函数
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=safari&rls=en&biw=1366&bih=651&q=y%3D7%5Ex&oq=y%3D7%5Ex&aq=f&aqi=&aql=&gs_l=serp.3...11309l14855l0l15334l6l6l0l0l0l0l720l720l6-1l1l0.frgbld.

y=x^7 幂函数
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=safari&rls=en&biw=1366&bih=651&q=y%3Dx%5E7&oq=y%3Dx%5E7&aq=f&aqi=&aql=&gs_l=serp.3...150730l151940l0l152188l6l5l0l0l0l0l0l0ll0l0.frgbld.

y=1/(2*pi)^(1/2)*exp((-1)*x^2/2) //正态分布
http://www.google.com.hk/#hl=zh-CN&newwindow=1&safe=strict&q=y%3D1%2F%282*pi%29^%281%2F2%29*exp%28%28-1%29*x^2%2F2%29&oq=y%3D1%2F%282*pi%29^%281%2F2%29*exp%28%28-1%29*x^2%2F2%29&aq=f&aqi=&aql=&gs_l=serp.12...25379l225127l12l246622l34l34l0l0l0l0l369l369l3-1l1l0.frgbld.&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=3c699164da2f212&biw=1366&bih=586
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
3d曲线画图,使用plot3

>> help plot3PLOT3  Plot lines and points in 3-D space.PLOT3() is a three-dimensional analogue of PLOT().PLOT3(x,y,z), where x, y and z are three vectors of the same length,plots a line in 3-space through the points whose coordinates are theelements of x, y and z.PLOT3(X,Y,Z), where X, Y and Z are three matrices of the same size,plots several lines obtained from the columns of X, Y and Z.Various line types, plot symbols and colors may be obtained withPLOT3(X,Y,Z,s) where s is a 1, 2 or 3 character string made fromthe characters listed under the PLOT command.PLOT3(x1,y1,z1,s1,x2,y2,z2,s2,x3,y3,z3,s3,...) combines the plotsdefined by the (x,y,z,s) fourtuples, where the x's, y's and z's arevectors or matrices and the s's are strings.Example: A helix:t = 0:pi/50:10*pi;plot3(sin(t),cos(t),t);PLOT3 returns a column vector of handles to LINE objects, onehandle per line. The X,Y,Z triples, or X,Y,Z,S quads, can be followed by parameter/value pairs to specify additional properties of the lines.See also PLOT, LINE, AXIS, VIEW, MESH, SURF.
        t = 0:pi/50:10*pi;%定义t区间plot3(sin(t),cos(t),t);%画图,x=sin(t),y=cos(t)

[x,y]=meshgrid(-4:0.2:4,-4:0.2:4);%定义x,y区间,x,y是自变量
z=exp(-0.5*(x.^2+y.^2));%定义z函数关系,exp即e^( )
plot3(x,y,z);%画图xlabel('x');
ylabel('y');
zlabel('z');
title('3d graph');


、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
3d网格画图

[x,y]=meshgrid(-4:0.2:4,-4:0.2:4);%定义x,y区间
z=exp(-0.5*(x.^2+y.^2));%定义z函数关系
mesh(x,y,z);%画图xlabel('x');
ylabel('y');
zlabel('z');
title('3d graph');

三维表面绘图,将mesh换成surf

三维等高线绘图,将mesh换成contour

http://www.math.uri.edu/~bkaskosz/flashmo/graph3d/
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
矩阵

>> A=[1,2,3;4,5,6;7,8,9]//矩阵定义,3行3列A =1     2     34     5     67     8     9>> B=[2:1:10]//也可这样定义B =2     3     4     5     6     7     8     9    10>> eye(2)//2阶单位矩阵ans =1     00     1>> zeros(2)//2阶0矩阵ans =0     00     0>> magic(2)//2阶幻方阵ans =1     34     2>> size(A)//取得矩阵的维数ans =3     3>> A(:,3)//输出矩阵第3列ans =369>> A//输出矩阵A =1     2     34     5     67     8     9>> A(3,:)//输出矩阵第3行ans =7     8     9

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

>> help imreadIMREAD Read image from graphics file.A = IMREAD(FILENAME,FMT) reads the image in FILENAME intoA. If the file contains a grayscale intensity image, A isa two-dimensional array.  If the file contains a truecolor(RGB) image, A is a three-dimensional (M-by-N-by-3) array.FILENAME is a string that specifies the name of thegraphics file, and FMT is a string that specifies theformat of the file.  The file must be in the currentdirectory or in a directory on the MATLAB path.  If IMREADcannot find a file named FILENAME, it looks for a filenamed FILENAME.FMT.
....JPEG  Any baseline JPEG image; JPEG images with somecommonly used extensionsTIFF  Any baseline TIFF image, including 1-bit, 8-bit, and24-bit uncompressed images; 1-bit, 8-bit, and 24-bitimages with packbits compression; 1-bit images withCCITT compression; also, 16-bit grayscale, 16-bitindexed, and 48-bit RGB imagesGIF   Any 1-bit to 8-bit GIF imageBMP   1-bit, 4-bit, 8-bit, 16-bit, 24-bit, and 32-bit uncompressedimages; 4-bit and 8-bit run-length encoded (RLE) imagesPNG   Any PNG image, including 1-bit, 2-bit, 4-bit, 8-bit,and 16-bit grayscale images; 8-bit and 16-bitindexed images; 24-bit and 48-bit RGB imagesHDF   8-bit raster image datasets, with or without anassociated colormap; 24-bit raster image datasetsPCX   1-bit, 8-bit, and 24-bit imagesXWD   1-bit and 8-bit ZPixmaps; XYBitmaps; 1-bit XYPixmapsICO   1-bit, 4-bit, and 8-bit uncompressed imagesCUR   1-bit, 4-bit, and 8-bit uncompressed imagesRAS   Any RAS image, including 1-bit bitmap, 8-bit indexed,24-bit truecolor and 32-bit truecolor with alpha.PBM   Any 1-bit PBM image.  Raw (binary) or ASCII (plain) encoded.PGM   Any standard PGM image.  ASCII (plain) encoded witharbitrary color depth.  Raw (binary) encoded with upto 16 bits per gray value.PPM   Any standard PPM image.  ASCII (plain) encoded witharbitrary color depth. Raw (binary) encoded with upto 16 bits per color component.
>> help imwriteIMWRITE Write image to graphics file.IMWRITE(A,FILENAME,FMT) writes the image A to FILENAME.FILENAME is a string that specifies the name of the outputfile, and FMT is a string the specifies the format of thefile.  A can be either a grayscale image (M-by-N) or atruecolor image (M-by-N-by-3).

比如,可以如下进行格式转换

A=imread('lena.jpg');
imwrite(A,'A.bmp');

查看img信息

>> imfinfo('a.bmp')ans = Filename: 'a.bmp'FileModDate: '03-Apr-2012 15:11:10'FileSize: 786486Format: 'bmp'FormatVersion: 'Version 3 (Microsoft Windows 3.x)'Width: 512Height: 512BitDepth: 24ColorType: 'truecolor'FormatSignature: 'BM'NumColormapEntries: 0Colormap: []RedMask: []GreenMask: []BlueMask: []ImageDataOffset: 54BitmapHeaderSize: 40NumPlanes: 1CompressionType: 'none'BitmapSize: 786432HorzResolution: 0VertResolution: 0NumColorsUsed: 0NumImportantColors: 0

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
opencv
http://sourceforge.net/projects/opencvlibrary/
http://www.opencv.org.cn/
http://groups.yahoo.com/group/OpenCV/

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

halcon
http://www.mvtec.com/halcon/download/
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

论坛
http://cvchina.net

转载于:https://www.cnblogs.com/-song/archive/2012/03/24/3331887.html

数字图像基础,论坛,算法库matlab,opencv,halcon相关推荐

  1. halcon算法库中各坐标系,位姿的解释及原理

    halcon算法库中各坐标系,位姿的解释及原理 前言 在学习halcon和光学原理的过程中,经常会听到像素坐标系,窗口坐标系,世界坐标系等等,很多时候会一头雾水,这时候一定要仔细甄别,了解其原理,才能 ...

  2. OpenCV4Android开发实录(3):数字图像基础与OpenCV开发入门

    转载请声明出处:https://blog.csdn.net/AndrExpert/article/details/79889136 俗话说:"工欲善其事,必先利其器".数字图像处理 ...

  3. 常见机器视觉软件OpenCV/Halcon/VisionPro/MIL的区别

    文章转载自微信公众号<机器视觉课堂> 专家总结常见机器视觉软件 机器视觉处理软件:用来完成输入图像数据的处理,通过一定的运算得出结果,这个输出的结果可能是PASS/FAIL信号.坐标位置. ...

  4. 数字图像处理 第二章数字图像基础

    第二章 数字图像基础 本章全都不是重点,了解就好 目标 人体视觉感知 光和电磁波谱 成像模型 图像取样与量化 一些基本概念和数学处理方法 人体视觉感知 人眼结构 上图为人眼剖面图. 人眼是一个直径约为 ...

  5. opencv4算法库学习笔记(5万多字超长干货——纪念奋战的自己)

    整理于2020年初三个月的日夜积累... 参考链接 opencv安装 安装脚本链接:https://github.com/milq/milq/blob/master/scripts/bash/inst ...

  6. Python主要智能优化算法库汇总

    最近几年简单浏览和对比了一些智能算法的库.现将各种库的主要信息.相关优缺点简单整理如下,各位同学可根据自己的需求和喜好进行选择. 文章目录 1.DEAP 2.mealpy 3.scikit-opt ( ...

  7. adadelta算法_对C++用户比较友好的机器学习算法库

    由于疫情影响,这几天在家学习编程,整理了基于c++语言的机器学习算法库.目前大部分机器学习库都是面向pyhton语言的,尽管很python包的底层语言是c++,但c++用户使用起来很麻烦,这里整理了一 ...

  8. 【CG】汇总开源的三维图形/计算几何/CAD算法库

    目录 Computer Graphics Group at RWTH Aachen OpenFlipper OpenMesh OpenVolumeMesh [IceSL]ADVANCED MODELI ...

  9. 技术干货|昇思MindSpore 1.5版本中的亲和算法库——MindSpore Boost

    有过AI网络训练的朋友们都知道,基于深度学习训练的AI收集越多的数据,使用越大的网络进行训练,能得到更好的精度.同时,越多的数据.越大的网络也意味着越大的算力消耗.如果能有一个算法库,在同等算力资源下 ...

最新文章

  1. 阿里如何实现100%容器化镜像化?八年技术演进之路回顾
  2. 域控制器配置系统要求
  3. SQLite数据库存储
  4. 区块链架构、跨链和演进
  5. 122 Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II
  6. SAP Spartacus My Company list focus事件触发后,控件border的默认效果
  7. java中的字段是_Java – 获取类中特定数据类型的字段
  8. Spring配置文件总结-applicationContext.xml
  9. JMP M16:64
  10. pywin32+excel(一)——Python使用win32com/pywin32操作excel
  11. DX9b 与 DX9c 在x文件解析方面带来的麻烦
  12. 511遇见易语言分割文本
  13. html网页早发白帝城,唐.李白《早发白帝城》(快乐写字)
  14. 【备忘】AAD Intune维护
  15. 关于Office 365开发者订阅无法注册的说明
  16. 百度提前批-面试凉凉之-梯度下降
  17. 开源问答社区软件Answer
  18. 谷歌:昔日屠龙者正在成为“恶龙”?
  19. 加权平均值与平均值_如何在Excel中计算加权平均值
  20. Java的宝贝——反射

热门文章

  1. 学一点Git–20分钟git快速上手
  2. 项目前的知识点准备(1)
  3. android 解决小米手机上选择照片路径为null的问题
  4. from torch._C import * ImportError: DLL load failed解决方法
  5. 剖析Fragment的Pause生命周期全过程
  6. 二分+并查集【bzoj3007】[SDOI2012]拯救小云公主
  7. TCP连接之报文首部
  8. 认识与设计Serverless(二)
  9. Win2008 R2 IIS7.5+PHP5(FastCGI)+MySQL5环境搭建教程
  10. php数据访问(查询)