CALCULATE HISTOGRAM 
Macro: MEAHISCAL	
Function: Calculate histogram of image and put on a vector plane.
Parameters:
1. Input image plane.
2. Output vector plane.
3. Parameters to calculate histogram:
-- minimum pixel value to consider
-- maximum pixel value to consider
-- number of bars in the histogram
