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

📄 imagerestoreext.h

📁 将数字图像处理的一般算法都集中在一个MFC的框架中
💻 H
字号:
#pragma once

#ifndef IMAGERESTORE_EXT_INCLUDE
#define IMAGERESTORE_EXT_INCLUDE


class ImageRestoreExt
{

private: 
	// 点扩散函数指针
	double *mask;  
			
	// 点扩散函数离散矩阵宽度    
	int mask_width;    
			
	// 点扩散函数离散矩阵高度
	int mask_height;   

public:
	//构造函数 
	ImageRestoreExt(void);

	//析构函数
	~ImageRestoreExt(void);

public:

	//分离数据投影法恢复,8位灰度数据和24位灰度数据输入
	void MapRestoreByteVar(unsigned char *imgBufIn ,int imgWidth, int imgHeight,int pxWidth ,int cycleCount);

	//变数据长度维纳滤波恢复
	bool WienerRestoreByteVar(unsigned char *imgBufIn,int imgWidth,int imgHeight,int pxWidth,double k);

	//图像逆滤波恢复
	bool InverseFilterByte(unsigned char *imgBufIn,int imgWidth,int imgHeight,int pxWidth);

	//PSF点扩散函数矩阵生成函数
	void GeneratePSF(double length, double angle);

};
#endif

⌨️ 快捷键说明

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