    _    _ _             _____    _            
   / \  (_) |__   ___   | ____|__| | __ _  ___ 
  / _ \ | | '_ \ / _ \  |  _| / _` |/ _` |/ _ \
 / ___ \| | |_) | (_) | | |__| (_| | (_| |  __/
/_/   \_\_|_.__/ \___/  |_____\__,_|\__, |\___|
                                    |___/      
   ____       _            _   _             
  |  _ \  ___| |_ ___  ___| |_(_) ___  _ __  
  | | | |/ _ \ __/ _ \/ __| __| |/ _ \| '_ \ 
  | |_| |  __/ ||  __/ (__| |_| | (_) | | | |
  |____/ \___|\__\___|\___|\__|_|\___/|_| |_|
======================================================================

La classe AiboEdgeDetection utilizza alcune informazioni presenti
nelle immagini in formato raw ritornate dall'Aibo per calcolare il
Sobel Edge Detection (vedi documentazione html in ./Doc generata da
Doxygen). 

UTILIZZO:
(nella directory test e' presente un programma di esempio).
Un semplice codice di esempio, in ambiente linux: l'immagine in
formato raw e' stata precedentemente salvata sul file "image.raw".

[mainObj.cc]
#include "AiboEdgeDetector.h"
static const string FILE_NAME="image";
...

int main(){
  AiboEdgeDetector segmentator(gDefaultWidth, gDefaultHeight);
  string rawImage="./" + FILE_NAME + ".raw";

  //
  // Apro l'immagine originale
  //
  FILE* tempFile;
  tempFile=fopen(rawImage.c_str(), "r");
  if(tempFile == NULL)
    {
      cerr << "Errore di apertuara file 1" << endl;
      return -1;
    }
  fread(buffer, 1,  (gDefaultWidth * gDefaultHeight) * 6 , tempFile);
  fclose(tempFile);

  const unsigned char* processedImg=segmentator.getMagnitude(buffer);

  ...
}

Per compilare il programma e' sufficiente il comando:

g++ -O2 -o edgeTest mainObj.cc AiboEdgeDetector.cc
