小臂测试优化
This commit is contained in:
1 parent
383bd34431
commit
65d8242c9c
1 file changed
+16
-4
@@ -6068,7 +6068,7 @@ bool MeshTexture::CreateVirtualFaces64(FaceDataViewArr& facesDatas, FaceDataView
|
|||||||
std::string strPath = imageData.name;
|
std::string strPath = imageData.name;
|
||||||
std::string strName = MeshTexture::GetFileNameWithoutExtension(strPath);
|
std::string strName = MeshTexture::GetFileNameWithoutExtension(strPath);
|
||||||
// printf("strName=%s\n", strName.c_str());
|
// printf("strName=%s\n", strName.c_str());
|
||||||
// if (strName!="63_2")
|
// if (strName!="94_2")
|
||||||
// continue;
|
// continue;
|
||||||
|
|
||||||
if (viewData.faceToIndexMap.find(virtualFaceCenterFaceID) != viewData.faceToIndexMap.end())
|
if (viewData.faceToIndexMap.find(virtualFaceCenterFaceID) != viewData.faceToIndexMap.end())
|
||||||
@@ -6108,7 +6108,7 @@ bool MeshTexture::CreateVirtualFaces64(FaceDataViewArr& facesDatas, FaceDataView
|
|||||||
nViewCoverage = 0;
|
nViewCoverage = 0;
|
||||||
nViewCoverageMax = 200;
|
nViewCoverageMax = 200;
|
||||||
nHit = 0;
|
nHit = 0;
|
||||||
nHitMax = 6;
|
nHitMax = 1;
|
||||||
for (size_t i = 0; i < sortedCams2.size(); ++i)
|
for (size_t i = 0; i < sortedCams2.size(); ++i)
|
||||||
{
|
{
|
||||||
if (nViewCoverage>=nViewCoverageMax)
|
if (nViewCoverage>=nViewCoverageMax)
|
||||||
@@ -6125,6 +6125,9 @@ bool MeshTexture::CreateVirtualFaces64(FaceDataViewArr& facesDatas, FaceDataView
|
|||||||
std::string strPath = imageData.name;
|
std::string strPath = imageData.name;
|
||||||
std::string strName = MeshTexture::GetFileNameWithoutExtension(strPath);
|
std::string strName = MeshTexture::GetFileNameWithoutExtension(strPath);
|
||||||
|
|
||||||
|
// if (strName!="94_2")
|
||||||
|
// continue;
|
||||||
|
|
||||||
// if (!scene.is_face_delete_edge2(strName, virtualFaceCenterFaceID))
|
// if (!scene.is_face_delete_edge2(strName, virtualFaceCenterFaceID))
|
||||||
{
|
{
|
||||||
filteredCams.push_back(viewIdx);
|
filteredCams.push_back(viewIdx);
|
||||||
@@ -6140,6 +6143,15 @@ bool MeshTexture::CreateVirtualFaces64(FaceDataViewArr& facesDatas, FaceDataView
|
|||||||
if (filteredCams.empty()) {
|
if (filteredCams.empty()) {
|
||||||
size_t count = std::min(sortedCams.size(), static_cast<size_t>(3));
|
size_t count = std::min(sortedCams.size(), static_cast<size_t>(3));
|
||||||
for (size_t i = 0; i < count; ++i) {
|
for (size_t i = 0; i < count; ++i) {
|
||||||
|
|
||||||
|
// IIndex viewIdx = sortedCams[i].first;
|
||||||
|
// float val = sortedCams[i].second;
|
||||||
|
// const Image& imageData = images[viewIdx];
|
||||||
|
// std::string strPath = imageData.name;
|
||||||
|
// std::string strName = MeshTexture::GetFileNameWithoutExtension(strPath);
|
||||||
|
// if (strName!="94_2")
|
||||||
|
// continue;
|
||||||
|
|
||||||
filteredCams.push_back(sortedCams[i].first);
|
filteredCams.push_back(sortedCams[i].first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6150,8 +6162,8 @@ bool MeshTexture::CreateVirtualFaces64(FaceDataViewArr& facesDatas, FaceDataView
|
|||||||
// 处理所有视图都被过滤的情况...
|
// 处理所有视图都被过滤的情况...
|
||||||
// DEBUG_EXTRA("Warning: All views filtered for virtual face due to angle condition.");
|
// DEBUG_EXTRA("Warning: All views filtered for virtual face due to angle condition.");
|
||||||
|
|
||||||
// selectedCams = SelectBestView(centerFaceDatas, virtualFaceCenterFaceID, minCommonCameras, ratioAngleToQuality);
|
selectedCams = SelectBestView(centerFaceDatas, virtualFaceCenterFaceID, minCommonCameras, ratioAngleToQuality);
|
||||||
selectedCams = filteredCams;
|
// selectedCams = filteredCams;
|
||||||
isVirtualFace[virtualFaceCenterFaceID] = false;
|
isVirtualFace[virtualFaceCenterFaceID] = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user