图像处理和图像识别中常用的CxImage函数

news/2024/9/19 6:18:58

1、Load:reads from disk the image in a specific format;

2、Save:saves to disk the image in a specific format;

3、Filter:2D linear filter(图像锐化,可提高图像清晰度);

4、Copy:copies the image from an exsisting source;

5、Resample:resizes the image ;

6、Saturate:changes the saturation of the image(调整图像饱和度);

7、GrayScale:图像灰度化;

8、Flip:图像上下翻动;

9、Mirror:图像左右翻动;

10、Negative:颜色取反(255-原值);

11、Dither:converts the image to B&W using the desired method ;

12、Threshold:converts the image to B&W(二值化);

13、AdaptiveThreshold:converts the image to B&W, using an optimal threshold mask(自适应阈值法);

14、Colorize:replaces the original hue and saturation values;

15、Solarize:convert all colors above a given lightness level into their negative ;

16、Light:changes the brightness and the contrast of the image(图像亮度和对比度调整);

17、Threshold2:filters only the pixels with a lightness less (or more) than the threshold level, and preserves the   colors for the unfiltered pixels;
18、Dilate:enhance the light areas of the image;
19、Erode:enhance the dark areas of the image;
20、Contour:enhance the variations between adjacent pixels;similar results can be achieved using Filter(), but the algorithms are different both in Edge() and in Contour();
21、Edge:enhance the variations between adjacent pixels(注意线性和非线性的区别);similar results can be achieved using Filter(), but the algorithms are different both in Edge() and in Contour();
22、Trace:finds the contour of an object with a given color;
23、Noise:adds an uniform noise to the image;
24、Jitter:adds a random offset to each pixel in the image;

25、Draw:draws the image in the specified device context, with support for alpha channel, alpha palette, transparency, opacity;
26、GetWidth:获得图像的宽带;
27、GetHeight:获得图像的高度;
28、GetXDPI:获得图像x轴分辨率(支持TIFF、JPEG、PNG、BMP格式);
29、GetYDPI:获得图像y轴分辨率(支持TIFF、JPEG、PNG、BMP格式);
30、IsValid:checks if the image is correctly initializated;
31、SetJpegQuality:set quality level for JPEG and JPEG2000;
32、GetJpegQuality:get quality level for JPEG and JPEG2000;
33、GetNumColors:returns 2, 16, 256; 0 for RGB images;
34、GetLastError:returns the last reported error;
35、SetPixelColor:设置像素颜色值;


http://lihuaxi.xjx100.cn/news/226077.html

相关文章

JAVA写XML乱码问题_java 写 xml 中文乱码

今天用java写xml文件,发现写完后xml文件的中文就变成了乱码,解决办法:把xml文件的头部编码改为utf-8,StreamResult编码方式也改为utf-8.部分代码public String createXMLbyId(){Course c courseService.getCourseById(17);try{//获取当前时间…

datagrid分页问题(前后跳页)《控件版》

在ASCX中写的。 在CSDN上看了很多的DATAGRID分页问题,当然DATAGRID有自己的分页项,功能是很有限的,我也在CSDN上看了很多自己分页的代码,发现都是用C#写的,我写了一个用ASP。NET中VB语言写的。以下代码供大家参考。 HT…

在对话框中应用CScrollView显示图像

1、用vs2008创建一个基于对话框的工程DialogView; 2、添加一个新类CMyDocument,基类为CDocument; 3、添加一个新类CMyView,基类为CScrollView; 4、修改CMyDocument的头文件: #pragma once // CMyDocument …

升级Jekyll 3.0

每一次的升级都得又一次折腾一次,jekyll也不例外 从jekyll 2.5.2 升级为jekyll 3.0.1 错误一: jekyll 3.0.1 | Error: Permission denied - bind(2) for 127.0.0.1:4000 端口被占有,打开_config.yml 在最后加上一行 port: 5001 (其它也可)问题解决 错误…

java 跨年 周计算公式_如何跨年计算 两日期之间相隔的周数 with java8 time API

2016年9月版 分割线之前版本的我太simple了...最近再去研究了一下Java8的新时间API,发现更有简单的方式去处理LocalDate localDate1 LocalDate.parse("2015-12-01");LocalDate localDate2 LocalDate.parse("2016-01-15");System.out.println(…

DataGrid基于Access的快速分页法

DataGrid基于Access的快速分页法撰文/ 黎波DataGrid是一个功能非常强大的ASP.NET Web服务器端控件,它除了能够方便地按各种方式格式化显示表格中的数据,还可以对表格中的数据进行动态的排序、编辑和分页。使Web开发人员从繁琐的代码中解放。实现DataGrid…

vs2008中,在OCX控件中应用doc/view基本步骤

1、利用向导创建一个MFC ActiveX Control控件CMyOCX; 2、在工程中加入ActivDoc头文件和执行文件; class CActiveXDocTemplate : public CSingleDocTemplate { enum { IDR_NOTUSED 0x7FFF }; CWnd* m_pParentWnd; CFrameWnd* m_pFrameWnd; C…

学习dubbo框架的问题

InputStream : 是所有字节输入流的超类,一般使用它的子类:FileInputStream等,它能输出字节流;InputStreamReader : 是字节流与字符流之间的桥梁,能将字节流输出为字符流,并且能为字节…