Home
last modified time | relevance | path

Searched refs:ncvAssertPrintReturn (Results 1 – 13 of 13) sorted by relevance

/external/opencv3/samples/gpu/
Dcascadeclassifier_nvidia_api.cpp163ncvAssertPrintReturn(cv::cuda::getCudaEnabledDeviceCount() != 0, "No GPU found or the library is c… in main()
164 ncvAssertPrintReturn(argc == 3, "Invalid number of arguments", -1); in main()
194 ncvAssertPrintReturn(capture.open(camid) != 0, "Can't open source", -1); in main()
198 ncvAssertPrintReturn(!frame.empty(), "Empty video source", -1); in main()
210ncvAssertPrintReturn(classifierOpenCV.load(cascadeName) != 0, "Error (in OpenCV) opening classifie… in main()
227ncvAssertPrintReturn(gpuCascadeAllocator.isInitialized(), "Error creating cascade GPU allocator", … in main()
229ncvAssertPrintReturn(cpuCascadeAllocator.isInitialized(), "Error creating cascade CPU allocator", … in main()
233ncvAssertPrintReturn(ncvStat == NCV_SUCCESS, "Error reading classifier size (check the file)", -1); in main()
236 ncvAssertPrintReturn(h_haarStages.isMemAllocated(), "Error in cascade CPU allocator", -1); in main()
238 ncvAssertPrintReturn(h_haarNodes.isMemAllocated(), "Error in cascade CPU allocator", -1); in main()
[all …]
Dopticalflow_nvidia_api.cpp409ncvAssertPrintReturn (g_pGPUMemAllocator->isInitialized (), "Device memory allocator isn't initial… in main()
412ncvAssertPrintReturn (g_pHostMemAllocator->isInitialized (), "Host memory allocator isn't initiali… in main()
/external/opencv3/modules/cudalegacy/test/
DNCVTestSourceProvider.hpp61 ncvAssertPrintReturn(rangeLow < rangeHigh, "NCVTestSourceProvider ctor:: Invalid range", ); in NCVTestSourceProvider()
65ncvAssertPrintReturn(cudaSuccess == cudaGetDevice(&devId), "Error returned from cudaGetDevice", ); in NCVTestSourceProvider()
66ncvAssertPrintReturn(cudaSuccess == cudaGetDeviceProperties(&devProp, devId), "Error returned from… in NCVTestSourceProvider()
72ncvAssertPrintReturn(data.get()->isMemAllocated(), "NCVTestSourceProvider ctor:: Matrix not alloca… in NCVTestSourceProvider()
95ncvAssertPrintReturn(sizeof(T) == 1, "NCVTestSourceProvider ctor:: PGM constructor complies only w… in NCVTestSourceProvider()
98 ncvAssertPrintReturn(!image.empty(), "NCVTestSourceProvider ctor:: PGM file error", ); in NCVTestSourceProvider()
102ncvAssertPrintReturn(cudaSuccess == cudaGetDevice(&devId), "Error returned from cudaGetDevice", ); in NCVTestSourceProvider()
103ncvAssertPrintReturn(cudaSuccess == cudaGetDeviceProperties(&devProp, devId), "Error returned from… in NCVTestSourceProvider()
107ncvAssertPrintReturn(data.get()->isMemAllocated(), "NCVTestSourceProvider ctor:: Matrix not alloca… in NCVTestSourceProvider()
DTestIntegralImage.cpp109 ncvAssertPrintReturn(false, "Incorrect integral image test instance", false); in process()
141 ncvAssertPrintReturn(false, "Incorrect integral image test instance", false); in process()
163 ncvAssertPrintReturn(false, "Incorrect integral image test instance", false); in process()
192 ncvAssertPrintReturn(false, "Incorrect integral image test instance", false); in process()
DTestTranspose.cpp116 ncvAssertPrintReturn(false, "Incorrect transpose test instance", false); in process()
138 ncvAssertPrintReturn(false, "Incorrect downsample test instance", false); in process()
DNCVTest.hpp87ncvAssertPrintReturn(cudaSuccess == cudaGetDevice(&devId), "Error returned from cudaGetDevice", ); in NCVTestProvider()
88ncvAssertPrintReturn(cudaSuccess == cudaGetDeviceProperties(&this->devProp, devId), "Error returne… in NCVTestProvider()
DTestResize.cpp129 ncvAssertPrintReturn(false, "Incorrect downsample test instance", false); in process()
151 ncvAssertPrintReturn(false, "Incorrect downsample test instance", false); in process()
DTestDrawRects.cpp133 ncvAssertPrintReturn(false, "Incorrect drawrects test instance", false); in process()
155 ncvAssertPrintReturn(false, "Incorrect drawrects test instance", false); in process()
/external/opencv3/modules/cudaobjdetect/src/
Dcascadeclassifier.cpp238ncvAssertPrintReturn(gpuCascadeAllocator->isInitialized(), "Error creating cascade GPU allocator",… in load()
239ncvAssertPrintReturn(cpuCascadeAllocator->isInitialized(), "Error creating cascade CPU allocator",… in load()
243ncvAssertPrintReturn(ncvStat == NCV_SUCCESS, "Error reading classifier size (check the file)", NCV… in load()
249ncvAssertPrintReturn(h_haarStages->isMemAllocated(), "Error in cascade CPU allocator", NCV_CUDA_ER… in load()
250ncvAssertPrintReturn(h_haarNodes->isMemAllocated(), "Error in cascade CPU allocator", NCV_CUDA_ERR… in load()
251ncvAssertPrintReturn(h_haarFeatures->isMemAllocated(), "Error in cascade CPU allocator", NCV_CUDA_… in load()
254 ncvAssertPrintReturn(ncvStat == NCV_SUCCESS, "Error loading classifier", NCV_FILE_ERROR); in load()
260ncvAssertPrintReturn(d_haarStages->isMemAllocated(), "Error in cascade GPU allocator", NCV_CUDA_ER… in load()
261ncvAssertPrintReturn(d_haarNodes->isMemAllocated(), "Error in cascade GPU allocator", NCV_CUDA_ERR… in load()
262ncvAssertPrintReturn(d_haarFeatures->isMemAllocated(), "Error in cascade GPU allocator", NCV_CUDA_… in load()
[all …]
/external/opencv3/modules/cudalegacy/include/opencv2/cudalegacy/
DNCV.hpp267 #define ncvAssertPrintReturn(pred, msg, err) \ macro
279 ncvAssertPrintReturn(pred, msg.c_str(), err); \
288 ncvAssertPrintReturn(NCV_SUCCESS==_ncvStat, msg.c_str(), _ncvStat); \
297 ncvAssertPrintReturn(cudaSuccess==res, msg.c_str(), errCode); \
306 ncvAssertPrintReturn(cudaSuccess==res, msg.c_str(), errCode); \
647 ncvAssertPrintReturn(ncvStat == NCV_SUCCESS, "NCVVectorAlloc ctor:: alloc failed", ); in NCVVectorAlloc()
713 ncvAssertPrintReturn(length_ * sizeof(T) <= memSegment.size, \ in NCVVectorReuse()
865 ncvAssertPrintReturn(pitch_ >= pitchBytes && in NCVMatrixAlloc()
874 ncvAssertPrintReturn(ncvStat == NCV_SUCCESS, "NCVMatrixAlloc ctor:: alloc failed", ); in NCVMatrixAlloc()
938 ncvAssertPrintReturn(pitch_ >= pitchBytes && in NCVMatrixReuse()
[all …]
/external/opencv3/modules/cudalegacy/src/cuda/
DNCVPyramid.cu371 ncvAssertPrintReturn(img.memType() == alloc.memType(), "NCVImagePyramid::ctor error", );
398ncvAssertPrintReturn(((NCVMatrixAlloc<T> *)(this->pyramid[i]))->isMemAllocated(), "NCVImagePyramid…
416ncvAssertPrintReturn(cudaSuccess == cudaGetLastError(), "NCVImagePyramid::ctor error", );
420ncvAssertPrintReturn(h_prevLayer.isMemAllocated(), "Validation failure in NCVImagePyramid::ctor", …
422ncvAssertPrintReturn(h_curLayer.isMemAllocated(), "Validation failure in NCVImagePyramid::ctor", );
423ncvAssertPrintReturn(NCV_SUCCESS == prevLayer->copy2D(h_prevLayer, prevLayer->size(), cuStream), "…
424ncvAssertPrintReturn(NCV_SUCCESS == curLayer->copy2D(h_curLayer, curLayer->size(), cuStream), "Val…
425ncvAssertPrintReturn(cudaSuccess == cudaStreamSynchronize(cuStream), "Validation failure in NCVIma…
436ncvAssertPrintReturn(0 == memcmp(&outGold, &outGPU, sizeof(T)), "Validation failure in NCVImagePyr…
565ncvAssertPrintReturn(0 == memcmp(&outGold, &h_outImg.at(j,i), sizeof(T)), "Validation failure in N…
DNCVBroxOpticalFlow.cu720ncvAssertPrintReturn(desc.alpha > 0.0f , "Invalid alpha" , … in NCVBroxOpticalFlow()
721ncvAssertPrintReturn(desc.gamma >= 0.0f , "Invalid gamma" , … in NCVBroxOpticalFlow()
722ncvAssertPrintReturn(desc.number_of_inner_iterations > 0 , "Invalid number of inner iterations" , … in NCVBroxOpticalFlow()
723ncvAssertPrintReturn(desc.number_of_outer_iterations > 0 , "Invalid number of outer iterations" , … in NCVBroxOpticalFlow()
724ncvAssertPrintReturn(desc.number_of_solver_iterations > 0, "Invalid number of solver iterations", … in NCVBroxOpticalFlow()
729ncvAssertPrintReturn(frame1.width() == kSourceWidth && frame1.height() == kSourceHeight, "Frame di… in NCVBroxOpticalFlow()
/external/opencv3/modules/cudalegacy/src/
DNCV.cpp506ncvAssertPrintReturn(memT != NCVMemoryTypeNone, "NCVMemNativeAllocator ctor:: counting not permitt… in NCVMemNativeAllocator()