prova.cc
author viric <viriketo@gmail.com>
Sun, 24 Apr 2011 18:25:11 +0200
changeset 1 a573dab6cb46
parent 0 6b8091ca909a
permissions -rw-r--r--
Afegeixo el Makefile.am que falta.

#include "Page.h"
#include <stdio.h>

int main(int argn, char **argv)
{
	Page *Imatge;

	pnm_init(&argn, argv);

	if (argn >= 2)
		Imatge = new Page(argv[1]);
	else
		Imatge = new Page("rotated.pbm");

	//printf("B/W: %f\n", Imatge->ratioBlackWhite());
	//Imatge->rotateMap(90);
	//Imatge->writeMap("rotated.pbm");
	//Imatge->tryAngles(-10,10,1);

	/* Arreglem angle */
	Imatge->rotateMap(Imatge->getSkew(10));
	if (argn >= 3)
		Imatge->writeMap(argv[2]);

	//Imatge->getText();
}