mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
build: unreachable code after CV_Error()
This commit is contained in:
@@ -74,7 +74,6 @@ Ptr<Blender> Blender::createDefault(int type, bool try_gpu)
|
||||
if (type == MULTI_BAND)
|
||||
return makePtr<MultiBandBlender>(try_gpu);
|
||||
CV_Error(Error::StsBadArg, "unsupported blending method");
|
||||
return Ptr<Blender>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ Ptr<Timelapser> Timelapser::createDefault(int type)
|
||||
if (type == CROP)
|
||||
return makePtr<TimelapserCrop>();
|
||||
CV_Error(Error::StsBadArg, "unsupported timelapsing method");
|
||||
return Ptr<Timelapser>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -163,7 +163,6 @@ Rect cv::detail::PlaneWarperGpu::buildMaps(Size src_size, InputArray K, InputArr
|
||||
(void)xmap;
|
||||
(void)ymap;
|
||||
throw_no_cuda();
|
||||
return Rect();
|
||||
#else
|
||||
projector_.setCameraParams(K, R, T);
|
||||
|
||||
@@ -198,7 +197,6 @@ Point cv::detail::PlaneWarperGpu::warp(const cuda::GpuMat & src, InputArray K, I
|
||||
(void)border_mode;
|
||||
(void)dst;
|
||||
throw_no_cuda();
|
||||
return Point();
|
||||
#else
|
||||
Rect dst_roi = buildMaps(src.size(), K, R, T, d_xmap_, d_ymap_);
|
||||
dst.create(dst_roi.height + 1, dst_roi.width + 1, src.type());
|
||||
@@ -216,7 +214,6 @@ Rect cv::detail::SphericalWarperGpu::buildMaps(Size src_size, InputArray K, Inpu
|
||||
(void)xmap;
|
||||
(void)ymap;
|
||||
throw_no_cuda();
|
||||
return Rect();
|
||||
#else
|
||||
projector_.setCameraParams(K, R);
|
||||
|
||||
@@ -242,7 +239,6 @@ Point cv::detail::SphericalWarperGpu::warp(const cuda::GpuMat & src, InputArray
|
||||
(void)border_mode;
|
||||
(void)dst;
|
||||
throw_no_cuda();
|
||||
return Point();
|
||||
#else
|
||||
Rect dst_roi = buildMaps(src.size(), K, R, d_xmap_, d_ymap_);
|
||||
dst.create(dst_roi.height + 1, dst_roi.width + 1, src.type());
|
||||
@@ -262,7 +258,6 @@ Rect cv::detail::CylindricalWarperGpu::buildMaps(Size src_size, InputArray K, In
|
||||
(void)xmap;
|
||||
(void)ymap;
|
||||
throw_no_cuda();
|
||||
return Rect();
|
||||
#else
|
||||
projector_.setCameraParams(K, R);
|
||||
|
||||
@@ -288,7 +283,6 @@ Point cv::detail::CylindricalWarperGpu::warp(const cuda::GpuMat & src, InputArra
|
||||
(void)border_mode;
|
||||
(void)dst;
|
||||
throw_no_cuda();
|
||||
return Point();
|
||||
#else
|
||||
Rect dst_roi = buildMaps(src.size(), K, R, d_xmap_, d_ymap_);
|
||||
dst.create(dst_roi.height + 1, dst_roi.width + 1, src.type());
|
||||
|
||||
Reference in New Issue
Block a user