Milena (Olena)
User documentation 2.0a Id
Main Page
Related Pages
Modules
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerator
Groups
Pages
morpho_top_hat_black.cc
1
#include <mln/morpho/top_hat.hh>
2
#include <mln/core/alias/neighb2d.hh>
3
#include <mln/io/pgm/all.hh>
4
#include <mln/value/int_u8.hh>
5
#include <mln/win/all.hh>
6
7
int
main(
int
argc,
char
*argv[])
8
{
9
using namespace
mln;
10
11
if
(argc != 3)
12
{
13
std::cout << argv[0] <<
" <in.pgm> <out.pgm>"
<< std::endl;
14
return
1;
15
}
16
17
image2d<value::int_u8>
input;
18
io::pgm::load
(input, argv[1]);
19
20
image2d<value::int_u8>
output =
morpho::top_hat_black
(input,
win::disk2d
(101));
21
22
io::pgm::save
(output, argv[2]);
23
}
tools
morpho_top_hat_black.cc
Generated on Thu Nov 8 2012 10:58:17 for Milena (Olena) by
1.8.2-20120930