I want to cut a sub-purt of an image (or crop it) using Emgu CV (or OpenCV) and calculate average color of that part; looking for changes.
Thanks
Set the ROI (Region of Interest) of the image you are working with this will mean any calculation is only done over this area.
image.ROI = new Rectangle(x,Y,Width,Height);
Calculate the Average of the ROI where "TYPE" is image dependant Bgr for colour Gray for Grayscale
TYPE average = image.GetAverage(image);
All the process does is loop through each pixel adds its value then divides by the total number of pixels. Saves you writing the code yourself.
Thanks Chris