summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/test_img.cc
blob: c67098fda5ce313546b9b704dafbdf715f838c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// test_img.cc
// robert - Programme du robot APBteam
// Copyright (C) 2005 Olivier Gaillard

#include "oconfig.hh"
#include "video4linux/video4linux.hh"
#include "image/image.hh"
#include <iostream>
#include "imgInterface.hh"


int main(int argc, char **argv) 
{
    ImgInterface img;
    OConfig config;
    // Chargement de l'image
    img.loadRaw (argv[1], Image::rgb, 360, 296);
    // Inversion de l'image
    img.mirror ();
    img.writeRaw ("../runtime/shots/toto.rgb");
}