https://doi.org/10.5201/ipol.2019.269
Raw File
Tip revision: 2088cf2f69747cf62d6c7224652ae752b134b33a authored by Software Heritage on 26 June 2019, 00:00:00 UTC
ipol: Deposit 1349 in collection ipol
Tip revision: 2088cf2
fill_curve.h
// SPDX-License-Identifier: GPL-3.0-or-later
/**
 * @file fill_curve.h
 * @brief Fill the interior of a closed curve in an image
 * 
 * (C) 2011-2014, 2019, Pascal Monasse <pascal.monasse@enpc.fr>
 */

#ifndef FILL_CURVE_H
#define FILL_CURVE_H

#include "levelLine.h"

template <typename T>
void fill_curve(const std::vector<Point>& line, T value,
                T* data, size_t w, size_t h,
                std::vector< std::vector<float> >* inter=0);

// Templates must have their implementation nearby
#include "fill_curve.cpp"

#endif
back to top