⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.h

📁 une tres bonne fenetre
💻 H
字号:
#ifndef rimage
#define rimage

#include <QtGui/QImage>
#include <QtGui/QColor>
#include <math.h>

struct pixeltype
{
	int x;
	int y;
	QRgb color;
	int r,g,b;
};
struct floatpixel
{
	float r,b,g;
};
		

namespace RImage
{
	bool pixels_different(QColor &,QColor &, int val);
	int  nombre_pixels_diff_autour(QImage *,int ,int ,QColor ,int );
			//les filtres
	void median(QImage *);
	void mediansans(QImage *);
	void gaussien(QImage *);
	void gaussiensans(QImage *);
	void passehaut(QImage *);
	void repoussage(QImage *);
			//gardien d'un pixel
	pixeltype  soblepixel(QImage *,int,int);
	pixeltype  gradienpixel(QImage *,int,int);
	pixeltype  perwitpixel(QImage *,int,int);
	floatpixel NormeGrad(QImage *,int,int);
			//gradien d'une image
	void soble(QImage *);
	void gradien(QImage *);
	void perwit(QImage *);
	void gradienami(QImage *,float);
			//optionnelle
	void contour(QImage *,int);
	void Niveau_Gris(QImage *);
	void courbe_initial(QImage *image,int w,int h,int ray,QColor coleur);
	bool recuperxy(QImage *image,int &x,int &y,QColor coleur);
};


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -