code: public void computeHistogram( T image , RectangleRotate_F32 region ) {
  
  		interpolate.setImage(image);
  
  		c = (float)Math.cos( region.theta );
  		s = (float)Math.sin( region.theta );
  
  		for( int i = 0; i < histogram.length; i++ ) {
  			histogram[i] = 0;
  		}
  
  		// if it is entirely inside the image, interpolate using a faster technique
  		if( isInFastBounds(region) ) {
  			computeHistogramInside( region);
  		} else {
  			computeHistogramBorder(image, region);
  		}
  
  		normalizeHistogram();
  	}
docs: Computes the histogram inside the specified region.  Results are returned by calling {@link #getHistogram()}.
  
  @param image Input image
  @param region Region which is to be sampled