I want to print the equivalent temperature of a pixel of an image that is converted by COLORMAP_JET.
e.g. an image is 100 x 100
in dimension, then the temperature array be like,
temp[] = {
{ 104, 1000, 600, .........},
{ 34, ,234, 678, ..........},
{ ..........................},
{ ..........................}
}
I want to store those temperatures in an array named temperature
.
applyColorMap(img, im_color, COLORMAP_JET);
count = 0;
for (int i = 0; i < img.rows; i++) {
for (int j = 0; j < img.cols; j++) {
temperature[count++] = ;/*get temperature here*/
}
}
How can I do that?