• Laser & Optoelectronics Progress
  • Vol. 59, Issue 16, 1611008 (2022)
Meng Liu1、*, Si Shen1, Dongbin Duan2, and Wenying Yao2
Author Affiliations
  • 1Department of Criminal Science and Technology, Zhejiang Police College, Hangzhou 310053, Zhejiang , China
  • 2Zhejiang Angelcomm Technology Co., Ltd., Hangzhou 310008, Zhejiang , China
  • show less
    DOI: 10.3788/LOP202259.1611008 Cite this Article Set citation alerts
    Meng Liu, Si Shen, Dongbin Duan, Wenying Yao. Texture Generation Method of Three‑Dimensional Model of Crime Scene Based On Multi Panoramic Images[J]. Laser & Optoelectronics Progress, 2022, 59(16): 1611008 Copy Citation Text show less
    Triangle P1P2P3
    Fig. 1. Triangle P1P2P3
    Spherical geometry
    Fig. 2. Spherical geometry
    Relation between panoramic image and panoramic sphere. (a) Coordinate system of panoramic image; (b) coordinate system of panoramic sphere
    Fig. 3. Relation between panoramic image and panoramic sphere. (a) Coordinate system of panoramic image; (b) coordinate system of panoramic sphere
    Coordinate system of texture image
    Fig. 4. Coordinate system of texture image
    Relation between panoramic image and texture image
    Fig. 5. Relation between panoramic image and texture image
    Mesh to texture map
    Fig. 6. Mesh to texture map
    Flow chart of texture generating algorithm
    Fig. 7. Flow chart of texture generating algorithm
    Ray occlusion
    Fig. 8. Ray occlusion
    Multi station view fusion
    Fig. 9. Multi station view fusion
    Effect before and after occlusion calculation. (a) Before occlusion calculation; (b) after occlusion calculation
    Fig. 10. Effect before and after occlusion calculation. (a) Before occlusion calculation; (b) after occlusion calculation
    Before blended
    Fig. 11. Before blended
    After blended
    Fig. 12. After blended
    Before texture filled
    Fig. 13. Before texture filled
    After texture filled
    Fig. 14. After texture filled
    Vertex shading rendering effect
    Fig. 15. Vertex shading rendering effect
    Texture map rendering effect
    Fig. 16. Texture map rendering effect

    Algorithm 2:Generate Texture Image Tith Multi-Panoramas

    1: function GenerateTexture(in_triangles,panoramas)

    2:  texture_image

    3:  for texture_pixel in texture_image

    4:   for panorama in panoramas

    5:    for triangle in in_triangles

    6:      shelter_state←CaculateShelter(triangle,panorama,texture_pixel)

    7:       distance_pixel←CaculateDistance(triangle,panorama,texture_pixel)

    8:    end for

    9:   end for

    10:   CaculateFillColor(shelter_states,distance_pixels,texture_pixel)

    11:  end for

    12:  return texture_image

    13: end function

    Table 0. [in Chinese]

    Algorithm 1:Caculate Shelter

    1: function CaculateShelter(triangle,panorama,texture_pixel)

    2:  Bool shelter_state←false

    3:  If(CatculateInTriangle(uv,texture_pixel))then

    4:   pt←Catculate3DpointOfTecturePixel(in_triangle,texture_pixel)

    5:   MinDis←CatculateMinDistance(triangle,pt)

    6:   If(MinDis < Threshold)then

    7:     Caculate intersection point K of OP and triangle

    8:     Caculate angle of KO and KP

    9:     If(angle ≈ π)then

    10:      shelter_state←true

    11:    end//if

    12:    end//if

    13:  end//if

    14:  return shelter_state

    15:end function

    Table 0. [in Chinese]

    Algorithm 3:Fill Texture Image

    1. function FillTexture(texture_image)

    2.  texture_image_t←texture_image

    3.  buildKdtree(texture_image_t)

    4.  for i in texture_image_t

    5.   N←KnnSearch(i)

    6.   CalculateWight(N)

    7.   CalculateWightColor(N)

    8.  end for

    9.  return texture_image_t

    10. end function

    Table 0. [in Chinese]
    Meng Liu, Si Shen, Dongbin Duan, Wenying Yao. Texture Generation Method of Three‑Dimensional Model of Crime Scene Based On Multi Panoramic Images[J]. Laser & Optoelectronics Progress, 2022, 59(16): 1611008
    Download Citation