summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/test_img.cc
blob: 065db7096c310394bab54b212fe22582b4772c75 (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("rc/vision.conf");
    // Chargement de l'image
    img.loadRaw (argv[1], Image::rgb, 360, 296);
    // Inversion de l'image
    img.mirror ();
    img.writeRaw ("shots/toto.rgb");
}