Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::VideoSet::BlackFrameDetect::ComputeGradient ( Array2dScalarReal64 *&  magnitude,
Array2dScalarReal64 im,
Real64  sigma 
) [inline]

Definition at line 57 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().

00061     {
00062         Real64 precision = 3.0;
00063     
00064         Array2dScalarReal64* Lx = 0;
00065         Array2dScalarReal64* Ly = 0;
00066         RecGauss(Lx, im, sigma, sigma, 1, 0, precision);
00067         RecGauss(Ly, im, sigma, sigma, 0, 1, precision);
00068     
00069         // compute gradient magnitude
00070         Array2dScalarReal64* Lx2 = 0;
00071         Array2dScalarReal64* Ly2 = 0;
00072         Mul(Lx2, Lx, Lx);
00073         Mul(Ly2, Ly, Ly);
00074         Add(magnitude, Lx2, Ly2);
00075         Sqrt(magnitude, magnitude);
00076         delete Lx2;
00077         delete Ly2;
00078         
00079         // compute gradient direction
00080         //Atan2(direction, Ly, Lx);
00081         delete Lx;
00082         delete Ly;
00083     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:46 2011 for ImpalaSrc by  doxygen 1.5.1