Median of deque<IplImage*>
===

I created the deque of IplImage in OpenCV 

deque<IplImage*> imageQueue; 

For (int i=0;i<50;i++)

{
 
 Mat img = imread(...........);
  imageQueue.push_back(img);

}

 I have 50 images in the imageQueue.Now I want to get the Median of 50 images in the imageQueue.Can someone help me ,how to do that.


  
		





