Zhang-Suen thinning algorithm: Difference between revisions

m
(C++ added)
Line 431:
=={{header|C++}}==
Compiled with --std=c++14
<lang CPP>#include <iostream>
// http://www.rosettacode.org/wiki/Zhang-Suen_thinning_algorithm#C
 
#include <iostream>
#include <string>
#include <sstream>
Line 481 ⟶ 478:
 
Image(unsigned width = 1, unsigned height = 1)
: width_{width}, height_{height}, data_( WHITE_PIX'\0', width_ * height_)
{}
Image(const Image& i) : width_{ i.width_}, height_{i.height_}, data_{i.data_}
Line 746 ⟶ 743:
..........................................................
</pre>
 
=={{header|D}}==
This uses the module from the Bitmap Task. And it performs no heap allocations.
Anonymous user