issue with poly2mask
조회 수: 8 (최근 30일)
이전 댓글 표시
Hello, I am trying to find the intersection over union of two polygons using poly2mask and polyarea. My two polygons are defined by:
box_rad_actu_lons_5 =
-2.0943 -2.1058 -2.0754 -2.0640 -2.0943
box_rad_actu_lats_5 =
0.6282 0.6135 0.5973 0.6120 0.6282
box_rad_proj_lons_5 =
-2.0948 -2.1057 -2.0735 -2.0627 -2.0948
box_rad_proj_lats_5 =
0.6284 0.6134 0.5975 0.6125 0.6284
When I apply poly2mask, as follows:
box_actu = poly2mask(box_rad_actu_lons_5, box_rad_actu_lats_5, 1000, 1000);
box_proj = poly2mask(box_rad_proj_lons_5, box_rad_proj_lats_5, 1000, 1000);
The results are no pixels that are within the polygons (value =1) for either box. What am I doing wrong?
Thanks, Dave Serke
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!