prova.cc
author viric@llimona
Thu, 18 May 2006 23:12:51 +0200
changeset 0 6b8091ca909a
permissions -rw-r--r--
Init from working directory of svn repository.

#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();
}