mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Minor fix in stitching_detailed
This commit is contained in:
parent
a7d053f10d
commit
230cc3e0c3
@ -555,7 +555,7 @@ int main(int argc, char* argv[])
|
||||
else if (seam_find_type == "gc_color")
|
||||
{
|
||||
#ifndef ANDROID
|
||||
if (try_gpu)
|
||||
if (try_gpu && gpu::getCudaEnabledDeviceCount() > 0)
|
||||
seam_finder = new detail::GraphCutSeamFinderGpu(GraphCutSeamFinderBase::COST_COLOR);
|
||||
else
|
||||
#endif
|
||||
@ -564,7 +564,7 @@ int main(int argc, char* argv[])
|
||||
else if (seam_find_type == "gc_colorgrad")
|
||||
{
|
||||
#ifndef ANDROID
|
||||
if (try_gpu)
|
||||
if (try_gpu && gpu::getCudaEnabledDeviceCount() > 0)
|
||||
seam_finder = new detail::GraphCutSeamFinderGpu(GraphCutSeamFinderBase::COST_COLOR_GRAD);
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user