裂缝检测开简历

时间:2020-06-05 11:09:57

标签: python opencv

image

我在上面的图像上应用了阈值。现在,我想做一个检测fissure的程序。有人可以建议我该怎么做吗?

我尝试创建一种遍历图像像素的算法,但这还不够好 {

void CollapseBuilding()
{
    MeshFilter[] meshFilters = GetComponentsInChildren<MeshFilter>();
    CombineInstance[] combineInstance = new CombineInstance[meshFilters.Length];
    int i = 0;
    while (i < meshFilters.Length)
    {
        combineInstance[i].mesh = meshFilters[i].sharedMesh;
        combineInstance[i].transform = meshFilters[i].transform.localToWorldMatrix;
        meshFilters[i].gameObject.transform.position = Isntancescript.instance.houseObject.transform.GetChild(i).localPosition;
        Destroy(meshFilters[i].gameObject);

        i++;
    }
    GameObject CollapsedHouse = Instantiate(debrisHelper);
    CollapsedHouse.transform.position = Vector3.zero;
    MeshFilter meshFilter = CollapsedHouse.AddComponent<MeshFilter>();
    CollapsedHouse.AddComponent<MeshRenderer>().material = debrisMat;
    meshFilter.mesh = new Mesh();
    meshFilter.mesh.CombineMeshes(combineInstance);
    Debug.Log(meshFilter.mesh.vertexCount);
    CollapsedHouse.AddComponent<Rigidbody>();
    CollapsedHouse.AddComponent<BoxCollider>();

0 个答案:

没有答案