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

📄 fnimage.h

📁 在人脸检测的基础之上,对嘴部的运动表情进行分析,进行语音模拟.
💻 H
字号:
// FnImage.h: interface for the FnImage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FNIMAGE_H__30B7D88A_BB9B_11D2_9B76_204C4F4F5020__INCLUDED_)
#define AFX_FNIMAGE_H__30B7D88A_BB9B_11D2_9B76_204C4F4F5020__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Matrix.h"
#define  MIN(x,y)   (x < y) ? x : y
#define  MAX(x,y)   (x < y) ? y : x

#include <math.h>
#include <stdio.h>
struct pixel_location{
	int row,column;
};

typedef struct{
	pixel_location start;
	int width,height;
} ROI_type;

struct intpairtype{
        int x, y;
};

matrix FindLum( const matrix &image);
matrix FindLumRGB(const matrix &image); 

matrix rotate(matrix &a1, float angle ,int direction, char type);
matrix RotateImage(matrix &image, double ang);
matrix shift_integer(matrix &a,  int d1, int d2);
void   skew(double *src,int len, int nlen, double strt, int offst,double *dst);
matrix flip_vertical( matrix &a);
matrix flip_horizontal( matrix &a);
matrix kucult(matrix& img, int xs, int ys);
matrix ScaleImage(matrix &im, double xs, double ys);
matrix ZoomImage( matrix &image, int x_factor, int y_factor);

double maximum(matrix &a , matrix& b);
double maximum3D(matrix &a , matrix& b);
double maximum(matrix &a);
double minimum(matrix &a , matrix& b); // b is 1x2 or 2x1

void   resize(matrix &im,int k,int l);

void   rgbToHsv( double r, double g, double b, double& h, double& s, double& v);
void   hsvToRgb( double h, double s, double v, double& red, double& green, double& blue);

matrix MedianFilter(matrix& image, int windowsize);

matrix thin_1 (matrix& InImage, int startx, int starty, int endx, int endy);
matrix thin_2(matrix& InImage, int startx, int starty, int endx, int endy);
matrix thin_4(matrix& InImage, int startx, int starty, int endx, int endy);

int region_grow(matrix& image_in, matrix& image_out, 
				int start_x, int start_y, 
				int end_x, int end_y, 
				int N);
int grass_label(matrix& a, matrix& b, int& N, int* h, int NS, int N1, int M1,
				int N2, int M2);
int grass(matrix& a, matrix& b, int row, int col, int number, int* area, 
		  int N1, int M1, int N2, int M2);
matrix DeleteSmallSegments(matrix& b, int* h, int N, int th);
matrix CleanEdgeMap( matrix& edges_in, int N1, int M1, int N2, int M2, int th);


#endif // !defined(AFX_FNIMAGE_H__30B7D88A_BB9B_11D2_9B76_204C4F4F5020__INCLUDED_)

⌨️ 快捷键说明

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