www.pudn.com > GPUVision_5-13-05-2.zip > CalculateDVec.h


#ifndef _CAL_D_VEC_H 
#define _CAL_D_VEC_H 
 
#include "MtxOps.h" 
 
class CalculateDVec : public MtxOps { 
//Multiplication between Sparse Matrix and a vetor. 
//We supposed every diagonal elements are 1, 
//and each row has 4 elements except the diagonal elements. 
//(each elements are adjacent elements in org. img. and stored in RGBA channel.) 
private: 
	int _height; 
	int _width;	 
	CGparameter _textureAParam; 
	void _initParameters();	 
 
public: 
	CalculateDVec(CGcontext context = NULL); 
	~CalculateDVec(); 
	virtual GLfloat* interpreteResult (GLfloat *colBuffer); 
	virtual void execute(GPUVision *outImg, int arg1);	 
	void showResultMtx(GPUVision* gpuVis, int m, int n); 
}; 
#endif