public void downsample() {
		//read the image
		Mat image = Highgui.imread(path);
		//mat out
		Mat out = new Mat();
		
		if(image.empty()) {
			System.out.println("Image not found !!");
			return;
		}
		
		//Show the Image before down sampling
		ImageUtils.displayImage(ImageUtils.toBufferedImage(image), "Before Downsampling");
		//Down sample the image by factor of 2
		Imgproc.pyrDown(image, out);
		//show the image after down sampling
		ImageUtils.displayImage(ImageUtils.toBufferedImage(out), "Down sampled Image");



		
	}