First time here? Check out the FAQ!
answered 2013-04-21 04:44:43 -0600
The problem is that Java binding for the Mat C++ class supports 1 or 2 dimensional Mats only. See the issue #1447. The possible workarounds are use 1 or 2 dimensional histograms or use native C++ code for this task.
Mat C++ class
Mat