@@ -236,7 +236,7 @@ cv::gapi::ie::TraitAs clarifyTrait(const cv::GMetaArg &meta,
236236
237237inline IE::TensorDesc toIE (const cv::Mat &mat, cv::gapi::ie::TraitAs hint) {
238238 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)
240240 {
241241 // NB: This logic is mainly taken from IE samples
242242 const size_t channels = mat.channels ();
@@ -253,7 +253,7 @@ inline IE::TensorDesc toIE(const cv::Mat &mat, cv::gapi::ie::TraitAs hint) {
253253 return IE::TensorDesc (toIE (mat.depth ()),
254254 IE::SizeVector{1 , channels, height, width}, bdesc);
255255 }
256- return IE::TensorDesc (toIE (mat.depth ()), toIE (sz), toIELayout (sz.dims () ));
256+ return IE::TensorDesc (toIE (mat.depth ()), toIE (sz), toIELayout (sz.dims ));
257257}
258258
259259// NB: Inference dimmensions always follow NCDHW order
@@ -296,7 +296,7 @@ inline IE::TensorDesc toIE(const cv::Mat &mat,
296296 const cv::gapi::ie::TraitAs hint,
297297 const IE::Layout layout) {
298298 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)
300300 {
301301 // NB: This logic is mainly taken from IE samples
302302 const size_t channels = mat.channels ();
0 commit comments