Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

4 dimensional Mat in opencv JAVA

I want to create a 4D Mat with dimensions 1x625x1x1 . Specifically I have a 625x1 Mat with zeros and ones. My caffemodel has an input of dimension 1x625x1x1. So I want to reshape the 625x1 Mat to 1x625x1x1 blob to be passed as input.

4 dimensional Mat in opencv JAVA

I want to create a 4D Mat with dimensions 1x625x1x1 . Specifically I have a 625x1 Mat with zeros and ones. My caffemodel has an input of dimension 1x625x1x1. So I want to reshape the 625x1 Mat to 1x625x1x1 blob to be passed as input.

Or suggest a way to create a 1x625x1x1 Mat and fill it with zeros and ones using a loop.

4 dimensional Mat in opencv JAVA

I want to create a 4D Mat with dimensions 1x625x1x1 . Specifically I have a 625x1 Mat with zeros and ones. My caffemodel has an input of dimension 1x625x1x1. 1x625x1x1 as given in the .prototxt file. So I want to reshape the 625x1 Mat to 1x625x1x1 blob to be passed as input.

Or suggest a way to create a 1x625x1x1 Mat and fill it with zeros and ones using a loop.