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

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

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

00052     {
00053         Real64 precision = 3.0;
00054     
00055         Array2dScalarReal64* Lx = 0;
00056         Array2dScalarReal64* Ly = 0;
00057         RecGauss(Lx, im, sigma, sigma, 1, 0, precision);
00058         RecGauss(Ly, im, sigma, sigma, 0, 1, precision);
00059     
00060         // compute gradient magnitude
00061         Array2dScalarReal64* Lx2 = 0;
00062         Array2dScalarReal64* Ly2 = 0;
00063         Mul(Lx2, Lx, Lx);
00064         Mul(Ly2, Ly, Ly);
00065         Add(magnitude, Lx2, Ly2);
00066         Sqrt(magnitude, magnitude);
00067         delete Lx2;
00068         delete Ly2;
00069         
00070         // compute gradient direction
00071         //Atan2(direction, Ly, Lx);
00072         delete Lx;
00073         delete Ly;
00074     }

Here is the call graph for this function:


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