package dataBase;

import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.awt.image.WritableRaster;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

import javax.imageio.ImageIO;

import dataBase.subPicture.SubPicture;


import util.simpleIO.Out;

public class Test_DataBase3_Search {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws IOException, ClassNotFoundException {
		
		File dir = new File("./testdaten/alt/");
		DataBase db = new DataBase(dir);
		Out.pl(db.toString());
		//_________________________________________
		
		File imageFile = 
		BufferedImage image = ImageIO.read(imageFile);
		
		SubPicture searchPic = new SubPicture(imageFile, image);
		db.search(searchPic);
	}

	/**
	 * 
	 * @param pixel
	 */
	private static void add(int[] pixel) {
		// TODO Auto-generated method stub
	}

}
