cyang1 / depixelize

A C++ implementation of the SIGGRAPH 2011 paper Depixelizing Pixel Art, by Johannes Kopf and Dani Lischinski
53 stars 13 forks source link

Update spline_optimizer.cpp #4

Open izackp opened 9 years ago

izackp commented 9 years ago

void clip_infinite_edge(const vd_type::edge_type& edge, boost::polygon::rectangle_data brect_, std::vectorboost::polygon::point_data* clipped_edge);

^ Should be placed in the header file too.

This code should clip infinite edges. Tested with the mario image provided here: https://github.com/cyang1/depixelize/issues/3

This just works.. but I'm not a c++ programmer, so this is probably not the best way to do it.