public AdaBoost() throws IOException{
		Features feat = new Features(100, 100);
		feat.integralImages(feat.FACES, feat.numbFaces, feat.integralFaces);
		System.out.println(new Date() + "--- Integralfaces. Done");
		feat.integralImages(feat.NONFACES, feat.numbNonFaces, feat.integralNonFaces);
		System.out.println(new Date() + "--- Integralnonfaces. Done");
		feat.generateFeat(feat.integralFaces, true);
		System.out.println(new Date() + "--- done. Generate Feat. (Faces)");
		feat.generateFeat(feat.integralNonFaces, false);
		System.out.println(new Date() + "--- done. Generate Feat. (Nonfaces)");
		System.out.println(new Date());
		features = feat.result;
		
		for(Feat f : features){
			f.generateTreshold();
		}
	}