repo.or.cz
/
seam-carving.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Play with cliqu's energies and 'recuit-simule' paramaters.
[seam-carving.git]
/
src
/
nrg_main.cc
blob
6f10690013c870438c13ddc214a5834e86035e13
1
#include <iostream>
2
3
#include
"all.hh"
4
5
using namespace
mln
;
6
using namespace
mln
::
value
;
7
8
int
main
(
int
argc
,
char
**
argv
)
9
{
10
if
(
argc
!=
3
)
11
{
12
std
::
cerr
<<
"usage: "
<< *
argv
<<
" in.ppm out.pgm
\n
"
;
13
return
1
;
14
}
15
16
image2d
<
rgb8
>
img
=
load
(
argv
[
1
]);
17
image2d
<
float
>
nrg
=
get_nrg
(
img
);
18
save
(
nrg
,
argv
[
2
]);
19
}