@@ -236,7 +236,7 @@ cv::gapi::ie::TraitAs clarifyTrait(const cv::GMetaArg &meta,
236
236
237
237
inline IE::TensorDesc toIE (const cv::Mat &mat, cv::gapi::ie::TraitAs hint) {
238
238
const auto &sz = mat.size ;
239
- if (sz.dims () == 2 && hint == cv::gapi::ie::TraitAs::IMAGE)
239
+ if (sz.dims == 2 && hint == cv::gapi::ie::TraitAs::IMAGE)
240
240
{
241
241
// NB: This logic is mainly taken from IE samples
242
242
const size_t channels = mat.channels ();
@@ -253,7 +253,7 @@ inline IE::TensorDesc toIE(const cv::Mat &mat, cv::gapi::ie::TraitAs hint) {
253
253
return IE::TensorDesc (toIE (mat.depth ()),
254
254
IE::SizeVector{1 , channels, height, width}, bdesc);
255
255
}
256
- return IE::TensorDesc (toIE (mat.depth ()), toIE (sz), toIELayout (sz.dims () ));
256
+ return IE::TensorDesc (toIE (mat.depth ()), toIE (sz), toIELayout (sz.dims ));
257
257
}
258
258
259
259
// NB: Inference dimmensions always follow NCDHW order
@@ -296,7 +296,7 @@ inline IE::TensorDesc toIE(const cv::Mat &mat,
296
296
const cv::gapi::ie::TraitAs hint,
297
297
const IE::Layout layout) {
298
298
const auto &sz = mat.size ;
299
- if (sz.dims () == 2 && hint == cv::gapi::ie::TraitAs::IMAGE)
299
+ if (sz.dims == 2 && hint == cv::gapi::ie::TraitAs::IMAGE)
300
300
{
301
301
// NB: This logic is mainly taken from IE samples
302
302
const size_t channels = mat.channels ();
0 commit comments