$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
ima-save.cc
1
#include <mln/core/image/image2d.hh>
2
#include <mln/io/pbm/save.hh>
3
#include <mln/make/image.hh>
4
5
#include "doc/tools/data.hh"
6
7
int
main()
8
{
9
using namespace
mln;
10
11
bool
vals[5][5] = {
12
{1, 0, 1, 0, 0},
13
{0, 1, 0, 1, 0},
14
{1, 0, 1, 0, 0},
15
{0, 1, 0, 1, 0},
16
{0, 1, 0, 1, 0}
17
};
18
image2d<bool>
ima =
make::image
(vals);
19
20
/* FIXME: MLN_DOC_DIR looks probably confusing in the
21
documentation... But we have to handle parallel builds. Maybe a
22
solution could be to prepare the the build dir for data? */
23
// \{
24
io::pbm::save
(ima, MLN_DOC_DIR
"/figures/ima_save.pbm"
);
25
// \}
26
}
doc
examples
ima-save.cc
Copyright (C) 2012 EPITA Research and Development Laboratory (LRDE)