1 | initial version |
if you look e.g. here, we got:
Mat squared;
Core.multiply(gl, gl, squared);
double energy = Core.sum(squared)[0];
Mat ln; cv::log(gl, ln);
Mat squared;
Core.multiply(ln, g, squared, -1);
double entropy = Core.sum(squared)[0];
... and so on ...
2 | No.2 Revision |
if you look e.g. here, we got:
Mat squared;
Core.multiply(gl, gl, squared);
double energy = Core.sum(squared)[0];
Mat ln; cv::log(gl, ln);
Mat squared;
Core.multiply(ln, g, gl, squared, -1);
double entropy = Core.sum(squared)[0];
... and so on ...
3 | No.3 Revision |
if you look e.g. here, we got:
Mat squared;
Core.multiply(gl, gl, squared);
Scalar sum = Core.sumElems(squared);
double energy = Core.sum(squared)[0];
sum.val[0];
Mat ln; cv::log(gl,
Core.log(gl, ln);
Mat squared;
Core.multiply(ln, gl, squared, -1);
Scalar sum = Core.sumElems(squared);
double entropy = Core.sum(squared)[0];
sum.val[0];
... and so on ...