www.pudn.com > GPUVision_5-13-05-2.zip > IndexMtxPos.h
#ifndef _IDX_MTX_POS_H
#define _IDX_MTX_POS_H
#include "MtxOps.h"
class IndexMtxPos : 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:
IndexMtxPos(CGcontext context = NULL);
~IndexMtxPos();
virtual GLfloat* interpreteResult (GLfloat *colBuffer);
virtual void execute(GPUVision *outImg, int arg1);
void showResultMtx(GPUVision* gpuVis, int m, int n);
};
#endif