Definition at line 58 of file BlackFrameDetect.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(). 00062 { 00063 Real64 precision = 3.0; 00064 00065 Array2dScalarReal64* Lx = 0; 00066 Array2dScalarReal64* Ly = 0; 00067 RecGauss(Lx, im, sigma, sigma, 1, 0, precision); 00068 RecGauss(Ly, im, sigma, sigma, 0, 1, precision); 00069 00070 // compute gradient magnitude 00071 Array2dScalarReal64* Lx2 = 0; 00072 Array2dScalarReal64* Ly2 = 0; 00073 Mul(Lx2, Lx, Lx); 00074 Mul(Ly2, Ly, Ly); 00075 Add(magnitude, Lx2, Ly2); 00076 Sqrt(magnitude, magnitude); 00077 delete Lx2; 00078 delete Ly2; 00079 00080 // compute gradient direction 00081 //Atan2(direction, Ly, Lx); 00082 delete Lx; 00083 delete Ly; 00084 }
Here is the call graph for this function:
|