Minor fix in stitching_detailed

This commit is contained in:
Alexey Spizhevoy 2011-09-26 10:04:50 +00:00
parent a7d053f10d
commit 230cc3e0c3

View File

@ -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