1
이미 생성 된 매트를 페이지 잠금하려고합니다. 런타임시OpenCV 2.4.4 CUDA : registerPageLocked failed
...
Mat cpuGray;
GpuMat gpuGray;
cv::cvtColor (cpuColor, cpuGray, CV_BGR2GRAY);
registerPageLocked(cpuGray);
gpuStream.enqueueUpload(cpuGray, gpuGray);
...
이것이 실패 : 다음 예제 코드를 고려
OpenCV Error: Gpu API call (invalid argument) in registerPageLocked, file ../gpu/src/matrix_operations.cpp, line 194
terminate called after throwing an instance of 'cv::Exception'
what(): ../gpu/src/matrix_operations.cpp:194: error: (-217) invalid argument in function registerPageLocked
Aborted
사람이 내가이 오류가 발생하는 일을하고 무엇을 알고 있나요? 미리 감사드립니다.
감사합니다. Alex,하지만 저도 그렇게 생각했습니다. 이제는 registerPageLocked를 호출하기 전에 gpuGray의 크기와 포인터를 조사합니다. – user2407197
@ user2407197 물론, 작동 시키셨습니까? – Alexey
아니요, 입력 매트가 유효하고 비어 있지 않아도 여전히 동일한 오류로 실패합니다. – user2407197