$extrastylesheet
Olena
User documentation 2.1
An Image Processing Platform
Milena
Getting started
API Reference Manual
All Classes
Examples
Demos
Publications
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
borderthickness.cc
1
#include <mln/core/image/image2d.hh>
2
#include <mln/border/fill.hh>
3
#include <mln/make/image.hh>
4
#include <mln/debug/println_with_border.hh>
5
#include <mln/border/thickness.hh>
6
7
int
main()
8
{
9
using namespace
mln;
10
11
// \{
12
bool
vals[3][3] = { { 0, 1, 1 },
13
{ 1, 0, 0 },
14
{ 1, 1, 0 } };
15
16
image2d<bool>
ima_def =
make::image
(vals);
17
border::fill
(ima_def,
false
);
18
debug::println_with_border
(ima_def);
19
20
std::cout <<
"==========="
<< std::endl << std::endl;
21
22
border::thickness
= 0;
23
image2d<bool>
ima_bt0 =
make::image
(vals);
24
debug::println_with_border
(ima_bt0);
25
// \}
26
27
}
doc
examples
borderthickness.cc
Copyright (C) 2012 EPITA Research and Development Laboratory (LRDE)