Skip to content

Repository files navigation

Implémentation de l'algorithme Douglas-Peucker en Python

Prérequis

Python 3.x installé sur votre système.


Configuration

1. Cloner ou Télécharger le Répertoire

Assurez-vous que tous les fichiers sont dans un seul dossier.

2. Créer et Activer un Environnement Virtuel

# Naviguez vers le répertoire du projet
cd Douglas-Peucker-Algorithm-Python

# Créez un environnement virtuel
python -m venv venv

# Activez l'environnement virtuel
# Sous Windows :
venv\Scripts\activate



### 3. Installer les Dépendances

```bash
pip install matplotlib

Exécution

  1. Assurez-vous que l'environnement virtuel est activé.
venv\Scripts\activate
2. Exécutez le script de test :
```bash
python test.py

Résultat Attendu

Le script simplifiera la liste de points donnée en utilisant différents seuils et affichera les résultats :

Seuil : 0.5, Points Simplifiés : [...]
Seuil : 1, Points Simplifiés : [...]
Seuil : 2, Points Simplifiés : [...]

////////////////////////////////////////ENGLISH////////////////////////////////////////////////

Douglas-Peucker Algorithm Python Implementation

Prerequisites

  1. Python 3.x installed on your system.

Setup

1. Clone or Download the Repository

Ensure all files are in a single directory.

2. Create and Activate a Virtual Environment

# Navigate to the project directory
cd Douglas-Peucker-Algorithm-Python

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
# On Windows:
venv\Scripts\activate

# On macOS/Linux:
source venv/bin/activate

3. Install Dependencies

pip install matplotlib

How to Run

  1. Ensure the virtual environment is activated.
  2. Run the test script:
python test.py

Expected Output

The script will simplify the given list of points using different thresholds and display the results:

Threshold: 0.5, Simplified Points: [...]
Threshold: 1, Simplified Points: [...]
Threshold: 2, Simplified Points: [...]

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages