Skip to content

Commit 8991a1a

Browse files
authored
Update doc.md
1 parent 9d65a81 commit 8991a1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ python run_get_projection_maps.py -camera front -scale 0.7 0.8 -shift -150 -100
198198
4. 对重叠区域中的每个像素,利用 `cv2.pointPolygonTest` 计算其到这两个多边形 `polyA``polyB` 的距离 $d_A,d_B$,则该像素对应的权值为 $w=d_B^2/(d_A^2+d_B^2)$,即如果这个像素落在 `front` 画面内,则它与 `polyB` 的距离就更远,从而权值更大。
199199

200200
5. 对不在重叠区域内的像素,若其属于 `front` 相机的范围则其权值为 1,否则权值为 0。于是我们得到了一个连续变化的,取值范围在 0~1 之间的矩阵 $G$,其灰度图如下:
201+
201202
<img style="margin:0px auto;display:block" width=250 src="./img/weight_for_FL.png" />
202203

203204
将 $G$ 作为权值可得融合后的图像为 `front * G + (1- G) * left`

0 commit comments

Comments
 (0)