checkBackend();
if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL_FP16)
throw SkipTestException("");
+ if (backend == DNN_BACKEND_CUDA && target == DNN_TARGET_CUDA_FP16)
+ applyTestTag(CV_TEST_TAG_DNN_SKIP_CUDA_FP16);
+ #if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020010000)
+ if (backend == DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019)
+ applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER, CV_TEST_TAG_DNN_SKIP_IE_VERSION);
+ #else
if (backend == DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019 && target != DNN_TARGET_CPU)
{
if (target == DNN_TARGET_OPENCL_FP16) applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16, CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER);
then the [GDAL](http://www.gdal.org) driver will be used in order to decode the image, supporting
the following formats: [Raster](http://www.gdal.org/formats_list.html),
[Vector](http://www.gdal.org/ogr_formats.html).
- - If EXIF information are embedded in the image file, the EXIF orientation will be taken into account
- and thus the image will be rotated accordingly except if the flag @ref IMREAD_IGNORE_ORIENTATION is passed.
+ - If EXIF information is embedded in the image file, the EXIF orientation will be taken into account
+ and thus the image will be rotated accordingly except if the flags @ref IMREAD_IGNORE_ORIENTATION
+ or @ref IMREAD_UNCHANGED are passed.
+- Use the IMREAD_UNCHANGED flag to keep the floating point values from PFM image.
- By default number of pixels must be less than 2^30. Limit can be set using system
variable OPENCV_IO_MAX_IMAGE_PIXELS
default:
return false;
}
- return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), aspectN, aspectD, (int)cvRound(value), convertFormat);
+ case CV_CAP_PROP_FOURCC:
++ return configureOutput(newFormat, (int)cvRound(value), convertFormat);
+ case CV_CAP_PROP_FORMAT:
+ return configureOutput(newFormat, (int)cvRound(value), convertFormat);
case CV_CAP_PROP_CONVERT_RGB:
- return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), aspectN, aspectD, outputFormat, value != 0);
+ return configureOutput(newFormat, outputFormat, value != 0);
case CV_CAP_PROP_SAR_NUM:
if (value > 0)
- return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), (UINT32)cvRound(value), aspectD, outputFormat, convertFormat);
+ {
+ newFormat.aspectRatioNum = (UINT32)cvRound(value);
+ return configureOutput(newFormat, outputFormat, convertFormat);
+ }
break;
case CV_CAP_PROP_SAR_DEN:
if (value > 0)
break;
case CV_CAP_PROP_FPS:
if (value >= 0)
- return configureOutput(requestedWidth, requestedHeight, value, aspectN, aspectD, outputFormat, convertFormat);
+ {
+ newFormat.setFramerate(value);
+ return configureOutput(newFormat, outputFormat, convertFormat);
+ }
break;
- case CV_CAP_PROP_FOURCC:
- break;
case CV_CAP_PROP_FRAME_COUNT:
break;
case CV_CAP_PROP_POS_AVI_RATIO: