Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

convert mat image object to nhwc

AR92
New Contributor I
935 Views

hi ,

i have a model which accepts shape nhwc but in my sample project it is using nchw 

how can i convert mat nchw to nhwc

 

Thanks

0 Kudos
5 Replies
Munesh_Intel
Moderator
914 Views

Hi Amit,


I would suggest you try the potential method that have been shared in Stack Overflow, available at the following link:

https://stackoverflow.com/questions/37689423/convert-between-nhwc-and-nchw-in-tensorflow


Regards,

Munesh


Munesh_Intel
Moderator
914 Views

Hi Amit,


I would suggest you try the potential method that have been shared in Stack Overflow, available at the following link:

https://stackoverflow.com/questions/37689423/convert-between-nhwc-and-nchw-in-tensorflow


Regards,

Munesh


AR92
New Contributor I
907 Views

hi 

i have seen this , this is in python.

i didn't find any transpose function in opencv

Munesh_Intel
Moderator
887 Views

Hi Amit,


The following link has some relevant information that might help you.

https://pfnet-research.github.io/menoh/md_tutorial.html


Regards,

Munesh


Munesh_Intel
Moderator
868 Views

Hi Amit,


This thread will no longer be monitored since we have provided a tutorial. If you need any additional information from Intel, please submit a new question.


Regards,

Munesh


Reply