Browse Source

修正颜色问题

ColorComparison
hesuicong 4 weeks ago
parent
commit
497f7b619b
  1. 3
      libs/MVS/SceneTexture.cpp

3
libs/MVS/SceneTexture.cpp

@ -1939,7 +1939,8 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr
for (int x = 0; x < width; x++) { for (int x = 0; x < width; x++) {
uchar maskVal = regionMask.at<uchar>(y, x); uchar maskVal = regionMask.at<uchar>(y, x);
if (maskVal > 0) { if (maskVal > 0) {
cv::Vec3b pixel = imageRegionRGB.at<cv::Vec3b>(y, x); cv::Vec3b pixelTemp = imageRegionRGB.at<cv::Vec3b>(y, x);
cv::Vec3b pixel(pixelTemp[2], pixelTemp[1], pixelTemp[0]);
for (int sy = 0; sy < scaleFactor; sy++) { for (int sy = 0; sy < scaleFactor; sy++) {
for (int sx = 0; sx < scaleFactor; sx++) { for (int sx = 0; sx < scaleFactor; sx++) {

Loading…
Cancel
Save