CentralDifferenceDerivativeKernel<T, U>::CentralDifferenceDerivativeKernel(bool iOrientY/*=false*/) { unsigned int iDimension = 3; m_orientY = iOrientY; m_separable = false; SetDimension(iDimension); Initialize_(); }
LaplacianKernel<T, U>::LaplacianKernel() { unsigned int iDimension = 3; m_separable = false; SetDimension(iDimension); Initialize_(); }
ErosionKernel<T, U>::ErosionKernel(const int iRadius/*=1*/) { m_radius = iRadius; m_separable = false; // compute default dimension unsigned int pDimension = 1+2*m_radius; // set dimensions SetDimension(pDimension); // initialize the buffer, fill kernel values Initialize_(); }
DerivativeOfGaussianKernel<T, U>::DerivativeOfGaussianKernel(const double iSigma/*=1*/, const int iDimension/*=-1*/) { m_sigma = iSigma; m_separable = true; //m_kernelType = kPgKernelType1D; unsigned int pDimension = 1 + 2 * ceil(2.5f * m_sigma); if (iDimension>=5)// && iDimension > pDimension) { pDimension = iDimension; } SetDimension(pDimension); Initialize_(); }
void Module::Call( ) { if ( !isInitialized_ ) { Initialize_(); } else if( doShutdown_ ) { Shutdown_(); } else { Run_(); } }
DiffOfGaussianKernel<T, U>::DiffOfGaussianKernel(const double iSigmaOuter/*=2*/, const double iSigmaInner/*=1*/, const int iDimension/*=-1*/) { if (iSigmaInner>=iSigmaOuter) return; m_sigmaOuter = iSigmaOuter; m_sigmaInner = iSigmaInner; m_separable = true;//false; //m_orientY = iOrientY; unsigned int pDimension = 1 + 2 * ceil(2.5f * m_sigmaOuter); if (iDimension>=5) { pDimension = iDimension; } SetDimension(pDimension); Initialize_(); }
bool CCSBot::Initialize(const BotProfile *profile) { return Initialize_(profile); }