I'm using this opencv function for calculate the histogram(For blue color).
calcHist( &bgr_planes[0], 1, 0, Mat(), b_hist, 1, &histSize, &histRange, uniform, accumulate );
Here we use all pixels in the image for calculate the histogram. Assume that I need to calculate the histogram using every 10th pixel or 100th pixel. Is there an efficient way to do this? I need to do this because I think it may increase the performances in histogram calculation even though some details are lossed.