Public Member Functions | |
CudaHmaxFLSal () | |
Default constructor. Need to call init() later. | |
CudaHmaxFLSal (MemoryPolicy mp, int dev, nub::ref< CudaSaliency > sal_in) | |
Constructor. | |
~CudaHmaxFLSal () | |
Destructor. | |
void | extractRandC1Patches (Image< float > *&posTrainingImages, int numPosTrainImages, std::vector< int > patchSizes, int nPatchesPerSize, int no) |
Randomly extract a set of C1Patches from positive training images. | |
void | getC1 (CudaImage< float > **&c1Res) |
void | getC1 (const CudaImage< float > &input, CudaImage< float > **&c1Res) |
Protected Attributes | |
nub::ref< CudaSaliency > | sal |
Definition at line 52 of file CudaHmaxFLSal.H.
CudaHmaxFLSal::CudaHmaxFLSal | ( | ) |
Default constructor. Need to call init() later.
CudaHmaxFLSal::CudaHmaxFLSal | ( | MemoryPolicy | mp, | |
int | dev, | |||
nub::ref< CudaSaliency > | sal_in | |||
) |
CudaHmaxFLSal::~CudaHmaxFLSal | ( | ) |
Destructor.
Definition at line 71 of file CudaHmaxFLSal.C.
void CudaHmaxFLSal::extractRandC1Patches | ( | Image< float > *& | posTrainingImages, | |
int | numPosTrainImages, | |||
std::vector< int > | patchSizes, | |||
int | nPatchesPerSize, | |||
int | no | |||
) |
Randomly extract a set of C1Patches from positive training images.
Reimplemented from CudaHmaxFL.
Definition at line 76 of file CudaHmaxFLSal.C.
References cudaCrop(), CudaImage< T >::getHeight(), CudaImage< T >::getWidth(), CudaImage< T >::resize(), CudaHmaxFL::setC1Patches(), Rectangle::tlbrI(), and ZEROS.