Anonymous user
Zhang-Suen thinning algorithm: Difference between revisions
m
→{{header|C++}}
(C++ added) |
m (→{{header|C++}}) |
||
Line 431:
=={{header|C++}}==
Compiled with --std=c++14
<lang CPP>#include <iostream>
#include <string>
#include <sstream>
Line 481 ⟶ 478:
Image(unsigned width = 1, unsigned height = 1)
: width_{width}, height_{height}, data_(
{}
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.
|