Wie konvertiere ich eine Region in ein Polygon?C++

Programme in C++. Entwicklerforum
Anonymous
 Wie konvertiere ich eine Region in ein Polygon?

Post by Anonymous »

Ich habe eine Matrix und kann Farbbereiche als std::vector extrahieren und möchte sie in Polygon Boost-Objekte konvertieren. Ich habe noch keine Ahnung, wie ich vorgehen soll.
Hier ist ein Matrixbeispiel mit einer Region von 3 und 0 und dem passenden gesuchten Polygon.
Image

Hier ist ein Beispielcode:

Code: Select all

#include 
#include 
#include 

#include 

template 
bool validIndex(Matrix const& a, std::pair const& at)
{
return (0

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post