mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 08:44:11 +08:00
destroy texture object
This commit is contained in:
@@ -135,15 +135,17 @@ namespace
|
||||
|
||||
int total = findCorners_gpu(eigTex_, eig_.rows, eig_.cols, static_cast<float>(maxVal * qualityLevel_), mask, tmpCorners_.ptr<float2>(), tmpCorners_.cols, counterPtr_, stream_);
|
||||
|
||||
|
||||
if (total == 0)
|
||||
{
|
||||
_corners.release();
|
||||
cudaSafeCall( cudaDestroyTextureObject(eigTex_) );
|
||||
return;
|
||||
}
|
||||
|
||||
sortCorners_gpu(eigTex_, tmpCorners_.ptr<float2>(), total, stream_);
|
||||
|
||||
cudaSafeCall( cudaDestroyTextureObject(eigTex_) );
|
||||
|
||||
if (minDistance_ < 1)
|
||||
{
|
||||
tmpCorners_.colRange(0, maxCorners_ > 0 ? std::min(maxCorners_, total) : total).copyTo(_corners, stream);
|
||||
|
Reference in New Issue
Block a user