Open izackp opened 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.
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.