1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
using namespace std;
int FILTERS::filter(int width,int height)
{
using namespace boost::numeric::ublas;
using namespace boost;
boost::tuple<float,float,float,float> lowpass(unsigned width, unsigned height);
{
return make_tuple(Low1,Low2,Low3,Low4);
}
boost::numeric::ublas::vector<double>W(width),H(height);
scalar_matrix<double> Matrix(width,height);
matrix<float> matrix1(width,height),matrix2(width,height),matrix3(width,height),Cood1(width,height),Cood2(width,height),Cood3(width,height),Cood4(width,height);
matrix<float> Sum1(width,height),Sum2(width,height), Diff1(width,height),Diff2(width,height), Denom1(width,height),Denom2(width,height);
matrix<float> Low1(width,height), Low2(width,height), Low3(width,height), Low4(width,height);
matrix<float> fSum1(width,height),fSum2(width,height),fDenom1(width,height),fDenom2(width,height);
matrix<float> high1(width,height), high2(width,height), high3(width,height), high4(width,height);
matrix<std::complex<float> > High1(width,height), High2(width,height),High3(width,height),High4(width,height);
//generate filters
L1,L2,H1,H2
////
|