Subject: CGAL users discussion list
List archive
- From: 郭斌 <>
- To:
- Subject: Re: [cgal-discuss] overlay of polygon and its raster
- Date: Thu, 4 Aug 2016 09:34:47 +0800
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:dFjmThG2wCeR0bjO0svWM51GYnF86YWxBRYc798ds5kLTJ75pc+wAkXT6L1XgUPTWs2DsrQf2rKQ4/mrBDFIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWD14LnjqvvptX6WEZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7aHoNUBmoLlRBJBVSftDn1W57wtm3xse8ri3rSBtH/Ub1hAWfq1KxsUhK90Co=
Thank you for your reply. This helps a lot.
2016-08-02 17:49 GMT+08:00 Efi Fogel <>:
On Tue, Aug 2, 2016 at 12:39 PM, 郭斌 <> wrote:Hi guys,Rookie here and now I encounter two problems and turn to you for help.1. Can I raster a polygon (both simple-polygon-2d-type and polygon-with-holes-2d-type) using CGAL? I can realize this myself, but I'm not satisfied with the speed.Not with CGAL.2. Suppose I raster my polygon to a M x N grid. For pixel (i,j), I want to get its overlay area with this polygon. I try to create a polygon using the four corner point of each pixel, but the speed is a bit slow even when grid size is 150 x 150 of simple-polygon-2d-type, let alone the polygon-with-holes-2d-type situation.When you raster the polygon, for each pixel, especially those on the border, you compute the area covered by the polygon. Perhaps OpenGL or OpenCV can help.
Best regards!
- [cgal-discuss] overlay of polygon and its raster, 郭斌, 08/02/2016
- Re: [cgal-discuss] overlay of polygon and its raster, Efi Fogel, 08/02/2016
- Re: [cgal-discuss] overlay of polygon and its raster, 郭斌, 08/04/2016
- Re: [cgal-discuss] overlay of polygon and its raster, Efi Fogel, 08/02/2016
Archive powered by MHonArc 2.6.18.