Definition at line 147 of file mainSrc.cpp. References Impala::Core::Array::Dilation(), gSigmaA, Impala::Core::Matrix::MatSet(), Impala::Core::Array::Mul(), Impala::Core::Array::Pattern::PatBinaryPixOp(), Impala::Core::Array::Pattern::PatInOutOp(), and Impala::Core::Array::PixMax(). Referenced by Impala::Application::Src::WindowSrc::HandleNewFrame(). 00149 { 00150 int cw = 2*gSigmaA + 1; 00151 int ch = 2*gSigmaA + 1; 00152 Array2dScalarReal64* ker = ArrayCreate<Array2dScalarReal64>(cw, ch); 00153 Core::Matrix::MatSet(ker, 0); 00154 00155 Array2dScalarReal64* tmp1 = 0; 00156 Dilation(tmp1, src, ker); 00157 Trait::BpoEqual<Array2dScalarReal64, Array2dScalarReal64, 00158 Array2dScalarReal64> bpo(0.0000000000000001); 00159 Pattern::PatBinaryPixOp(tmp1, tmp1, src, bpo); // src == dilated implies local max 00160 Mul(tmp1, tmp1, src); // obtain orignal values for local max from src 00161 Real64 theMax = PixMax(tmp1); 00162 //std::cout << "theMax : " << theMax << std::endl; 00163 00164 ExportPoints expPoints(theMax, pListBI); // obtain coordinates 00165 Pattern::PatInOutOp(tmp1, expPoints); 00166 00167 Array2dScalarReal64* tmp2 = 0; 00168 Dilation(tmp2, tmp1, ker); // "blow up" points for visibility 00169 delete ker; 00170 00171 BpoSwiss bpoSwiss(theMax, dimension); // insert colored points in original 00172 Pattern::PatBinaryPixOp(dst, dst, tmp2, bpoSwiss); 00173 delete tmp1; 00174 delete tmp2; 00175 }
Here is the call graph for this function:
|