Skip to content
  • Jean-Yves TINEVEZ's avatar
    Improve mask_to_objects. · 62785ba5
    Jean-Yves TINEVEZ authored
    - Directly permute X & Y to have boundary coordinates in the proper
    referential, like junctions.
    - Reduce the number of vertices in the polygon, using reducepoly.
    With this setting (0.005) reducepoly is very conservative, but
    effectively decimate useless vertices. This has a positive impact
    on the area calculation (fewer, larger triangles), and on all
    performance.
    62785ba5