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

convert mat image object to nhwc

AR92
New Contributor I
2,606 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
2,585 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


0 Kudos
Munesh_Intel
Moderator
2,585 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


0 Kudos
AR92
New Contributor I
2,578 Views

hi 

i have seen this , this is in python.

i didn't find any transpose function in opencv

0 Kudos
Munesh_Intel
Moderator
2,558 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


0 Kudos
Munesh_Intel
Moderator
2,539 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


0 Kudos
Reply