Ask Your Question
0

newbie question: working with higher dimensional mat [closed]

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

holger gravatar image

Hello,

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

c++ https://github.com/opencv/opencv/blob...

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

python https://github.com/opencv/opencv/blob...

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
1

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

holger gravatar image

Hmm a bit searching found me this https://stackoverflow.com/questions/5...

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

Stats

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

Seen: 385 times

Last updated: Jul 25 '19