Flipped images were still using the original image instead of
flipping the coordinates, thus returning the wrong data. Let's just
flip the y-axis to find the right location in the original image.
QString label = tr("Pixel: ");
+ /* If the image is flipped, substitute y to match */
+ if (flipCheckBox->isChecked()) {
+ y = m_convertedImage.height() - y - 1;
+ }
+
if (m_image->channelType == image::TYPE_UNORM8) {
label += createPixelLabel<unsigned char>(m_image, x, y);
} else {