 /*
The object of this program is the following: Given an X-Ray image we'd like to calculate
the Grey-scale values of the image and then use those values to calculate thicknesses for a mask which will be
placed in the path of the beam to correct anD equalize the images taken from the subject. To do this we'd like to
limit the number of our data points to only a few points. The way to do this is to make a course-grain of the
image (or pixilize it.) By taking average values of every region of the image one can find the right grey scale
value for that particular region to an arbitrary resolution lower than the original resolution of the
image. This is what my program does. It takes average values of the image and claculates the new image which
will have a user defined lower resolution. To add to the functionality I have added a crop and zoom feature to
the program fo that a specific region can be selected to be coursegrained and display as is usually desired.
There is also a class called TakeNegative which will take a negative of the image and display it to the screen
using xview. CourseGrain and TakeNegative are both derived from a class Filter because they satisfy
the IS_A requirement.I have created an image of 512X480 because those are the only raw images I have. But if
you have different raw images you should be able to do the same operations with those
images. */


#include <iostream.h>
#include "Image.h"
#include "Filter.h"
#include <fstream.h>
void main(){
	Image I(480,512);
	
	CourseGrain cg(I);
	TakeNegative tn(I);
	BlacknWhite bw(I);
	
//Late binding and polymorphism
	
	ximage(cg);
	ximage(tn);
	ximage(bw);
	
	
	}
