Definition at line 49 of file BlackFrameProc.h. References Impala::Core::Array::Add(), Impala::Core::Array::Mul(), Impala::Application::DemoCamera2d::precision, Impala::Core::Array::RecGauss(), and Impala::Core::Array::Sqrt(). Referenced by HandleNewFrame(). 00053 { 00054 Real64 precision = 3.0; 00055 00056 Array2dScalarReal64* Lx = 0; 00057 Array2dScalarReal64* Ly = 0; 00058 RecGauss(Lx, im, sigma, sigma, 1, 0, precision); 00059 RecGauss(Ly, im, sigma, sigma, 0, 1, precision); 00060 00061 // compute gradient magnitude 00062 Array2dScalarReal64* Lx2 = 0; 00063 Array2dScalarReal64* Ly2 = 0; 00064 Mul(Lx2, Lx, Lx); 00065 Mul(Ly2, Ly, Ly); 00066 Add(magnitude, Lx2, Ly2); 00067 Sqrt(magnitude, magnitude); 00068 delete Lx2; 00069 delete Ly2; 00070 00071 // compute gradient direction 00072 //Atan2(direction, Ly, Lx); 00073 delete Lx; 00074 delete Ly; 00075 }
Here is the call graph for this function:
|