|
|
|
|
@ -6115,9 +6115,9 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
@@ -6115,9 +6115,9 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
|
|
|
|
|
// CreateVirtualFaces(facesDatas, virtualFacesDatas, virtualFaces, minCommonCameras);
|
|
|
|
|
// CreateVirtualFaces3(facesDatas, virtualFacesDatas, virtualFaces, minCommonCameras);
|
|
|
|
|
// CreateVirtualFaces4(facesDatas, virtualFacesDatas, virtualFaces, mapFaceToVirtualFace, minCommonCameras);
|
|
|
|
|
// CreateVirtualFaces6(facesDatas, virtualFacesDatas, virtualFaces, isVirtualFace, minCommonCameras);
|
|
|
|
|
CreateVirtualFaces6(facesDatas, virtualFacesDatas, virtualFaces, isVirtualFace, minCommonCameras); |
|
|
|
|
TD_TIMER_STARTD(); |
|
|
|
|
CreateVirtualFaces7(facesDatas, virtualFacesDatas, virtualFaces, isVirtualFace, minCommonCameras); |
|
|
|
|
// CreateVirtualFaces7(facesDatas, virtualFacesDatas, virtualFaces, isVirtualFace, minCommonCameras);
|
|
|
|
|
DEBUG_EXTRA("CreateVirtualFaces7 completed: %s", TD_TIMER_GET_FMT().c_str()); |
|
|
|
|
|
|
|
|
|
size_t controlCounter(0); |
|
|
|
|
@ -6277,7 +6277,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
@@ -6277,7 +6277,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
|
|
|
|
|
|
|
|
|
|
// const Label label = (Label)fd.idxView + 1;
|
|
|
|
|
// inference.SetDataCost(label, f, MaxEnergy);
|
|
|
|
|
sortedViews.emplace_back(fd.quality, fd.idxView); |
|
|
|
|
// sortedViews.emplace_back(fd.quality, fd.idxView);
|
|
|
|
|
sortedViews2.emplace_back(fd.quality, fd.color); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
@ -6311,7 +6311,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
@@ -6311,7 +6311,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//*
|
|
|
|
|
/*
|
|
|
|
|
int nSize = sortedViews2.size(); |
|
|
|
|
|
|
|
|
|
float totalQuality = 0.0f; |
|
|
|
|
@ -6350,7 +6350,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
@@ -6350,7 +6350,7 @@ bool MeshTexture::FaceViewSelection3( unsigned minCommonCameras, float fOutlierT
|
|
|
|
|
// continue;
|
|
|
|
|
// 过滤不可见的面
|
|
|
|
|
|
|
|
|
|
//*
|
|
|
|
|
/*
|
|
|
|
|
const Color& viewColor = sortedViews2[i].second; |
|
|
|
|
// float colorDistance = cv::norm(avgColor - viewColor);
|
|
|
|
|
// if (colorDistance>0.0001)
|
|
|
|
|
|