From 2fefb4738cd1621c171ee4eb346484e47ca5862a Mon Sep 17 00:00:00 2001 From: hesuicong Date: Fri, 21 Aug 2026 14:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=80=E4=B8=AA=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/MVS/SceneTexture.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libs/MVS/SceneTexture.cpp b/libs/MVS/SceneTexture.cpp index 2db0fbf..65106ab 100644 --- a/libs/MVS/SceneTexture.cpp +++ b/libs/MVS/SceneTexture.cpp @@ -1151,24 +1151,11 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr // continue; } - /* - // 已有的过曝判断保留 float brightnessPerceptual = (0.299f * pixel.r + 0.587f * pixel.g + 0.114f * pixel.b) / 255.0f; - if (brightnessPerceptual > 0.95f) - continue; - - float Y = 0.299f * pixel.r + 0.587f * pixel.g + 0.114f * pixel.b; - float maxChan = MAXF(pixel.r, MAXF(pixel.g, pixel.b)); - float minChan = MINF(pixel.r, MINF(pixel.g, pixel.b)); - float saturation_approx = (maxChan > 0) ? (maxChan - minChan) / maxChan : 0.0f; + // printf("brightnessPerceptual=%f\n", brightnessPerceptual); - // 只两个条件:极亮 + 低饱和 - bool isSpecular = (Y > 240.0f) && (saturation_approx < 0.12f); - - if (isSpecular) { + if (brightnessPerceptual>0.95f) continue; - } - */ // if (!(scene.mesh.invalidFacesRelative.data.contains(idxFace) && scene.is_face_visible_relative(idxFace))) // if (false)