I just learned how to use SetRequestedRegion, but this concept only works for filters that output an image. What is the best way to compute the histogram of pixels in a certain region of an image? Of course using a RegionOfInterestImageFilter before the ImageToHistogramFilter works fine, but if I have to do this on millions of image patches it is quite slow.<div>

<br clear="all">Thanks,<br><br>David<br>
</div>