Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

divide double[] into double factor

Hi, I am working with opencv in java.
I have a cvMat element with three elements and I want to divide the first and the third element in order to get just the double value.
Using < T.get(0, 0) > I get a data type double[]
I have tried to make as follow
double div = T.get(0, 0) / T.get(0, 0);
or just
double div = T.get(0, 0) / 2.0d
but neither the first nor the second one are allowed

How can I could do that ?

divide double[] into double factor

Hi, I am working with opencv in java.
I have a cvMat element with three elements and I want to divide the first and the third element in order to get just the double value.
Using < T.get(0, 0) > I get a data type double[]
I have tried to make as follow
double div = T.get(0, 0) / T.get(0, 0);
or just
double div = T.get(0, 0) / 2.0d
but neither the first nor the second one are allowed

How can could I could do that ?

divide double[] into double factor

Hi, I am working with opencv in java.
I have a cvMat element with three elements and I want to divide the first and the third element in order to get just the double value.
Using < T.get(0, 0) > I get a data type double[]
I have tried to make as follow
double div = T.get(0, 0) / T.get(0, T.get(2, 0);
or just
double div = T.get(0, 0) / 2.0d
but neither the first nor the second one are allowed

How could I do that ?

divide double[] into double factor

Hi, I am working with opencv in java.
I have a cvMat element with three elements and I want to divide the first and the third element in order to get just the double value.
Using < T.get(0, 0) > I get a data type double[]
I have tried to make as follow
double div = T.get(0, 0) / T.get(2, 0);
or just
double div = T.get(0, 0) / 2.0d
but neither the first nor the second one are allowed

How could I do that ?