2020-10-23 10:48:09 -0600 | received badge | ● Student (source) |
2020-10-23 09:59:53 -0600 | received badge | ● Supporter (source) |
2020-10-23 09:59:50 -0600 | marked best answer | Change blobFromImage dimensions order Hello everyone, I faced a problem with C++ blobFromImage function. I trained a CNN-network in Keras which takes a 4-d blob as input (common practice, nothing special). The problem is that my blob order is NHWC (where Channle size is always 6) but blobFromImage returns only NCHW. There is no any trouble to reshape numpy-blob in python but I haven't found any solution for C++. Is there any way to create blob of NHWC in C++ or reshape blobFromImage result to NHWC? EDIT: After spending whole day solving the problem I finally got correct result. It turned out that my input images were CV_8U but my blob held CV_32F, so I simply converted inputs to CV_32F and it worked! Thanks @berak for help. |
2020-10-23 09:59:50 -0600 | received badge | ● Scholar (source) |
2020-10-23 09:59:45 -0600 | commented answer | Change blobFromImage dimensions order It works! It happend to be incorrect input type. Had to convert input to CV_32F |
2020-10-23 09:56:05 -0600 | edited question | Change blobFromImage dimensions order Change blobFromImage dimensions order Hello everyone, I faced a problem with C++ blobFromImage function. I trained a CN |
2020-10-23 03:14:26 -0600 | commented answer | Change blobFromImage dimensions order No, I tried retrieval on the input blob. Moreover, output size remains the same, except channel equal 1: (1, 720, 1280. |
2020-10-22 08:24:58 -0600 | commented answer | Change blobFromImage dimensions order It doesn't retrieve image properly :( I left an "edit" section in answer's body. |
2020-10-22 08:23:00 -0600 | received badge | ● Editor (source) |
2020-10-22 08:23:00 -0600 | edited question | Change blobFromImage dimensions order Change blobFromImage dimensions order Hello everyone, I faced a problem with C++ blobFromImage function. I trained a CN |
2020-10-22 07:38:12 -0600 | commented answer | Change blobFromImage dimensions order Thank you for your reply. I wrote this code by your comments and it seems it works fine but I can't check whether images |
2020-10-22 07:24:56 -0600 | commented answer | Change blobFromImage dimensions order Thank you for your reply. I wrote this code by your comments and it seems it works fine but I can't check whether images |
2020-10-22 04:24:50 -0600 | commented question | Change blobFromImage dimensions order Input data is two 3-channel images stitched together (at channel axis) in one blob. For example, if images resolution is |
2020-10-22 04:01:39 -0600 | asked a question | Change blobFromImage dimensions order Change blobFromImage dimensions order Hello everyone, I faced a problem with C++ blobFromImage function. I trained a CN |