diff --git a/libs/MVS/SceneTexture.cpp b/libs/MVS/SceneTexture.cpp index 7b93b1e..10e12a3 100644 --- a/libs/MVS/SceneTexture.cpp +++ b/libs/MVS/SceneTexture.cpp @@ -1939,7 +1939,8 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr for (int x = 0; x < width; x++) { uchar maskVal = regionMask.at(y, x); if (maskVal > 0) { - cv::Vec3b pixel = imageRegionRGB.at(y, x); + cv::Vec3b pixelTemp = imageRegionRGB.at(y, x); + cv::Vec3b pixel(pixelTemp[2], pixelTemp[1], pixelTemp[0]); for (int sy = 0; sy < scaleFactor; sy++) { for (int sx = 0; sx < scaleFactor; sx++) {