Ask Your Question

newbie question: working with higher dimensional mat [closed]

asked 2019-07-25 10:28:40 -0500

holger gravatar image


I found some c++ / python code for evaluating a text detection model -


const float* scoresData = scores.ptr<float>(0, 0, y);


scoresData = scores[0][0][y]

These two snippets do the same in different programming programming language - its get back an array with probabilities. I am trying to port this call to java - but i am failing hard here.

Can you give me a small hint how to port this line in question to java? Thank you very much + Greetings, Holger

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by holger
close date 2019-07-25 10:52:17.483313

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-25 10:51:21 -0500

holger gravatar image

Hmm a bit searching found me this

Which point to a solution given by @berak (what a suprise ^^) So i am closing this answer as solved - anyone facing the same problem - take a look at the reshape function.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-07-25 10:28:40 -0500

Seen: 22 times

Last updated: Jul 25