<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.1.16">
</HEAD>
<BODY>
Hi<BR>
<BR>
I am currently trying to generate a grey level histogram from from a region of interest of an image.<BR>
<BR>
<BR>
To select the roi from the original image I am using RegionOfInterestImageFilter.<BR>
<BR>
I am then using a ListSampleToHistogramGenerator to generate the histogram.<BR>
<BR>
The trouble is the ScalarImageToListAdaptor I am passing to the ListSampleToHistogramGenerator<BR>
insists that the size of the roi I am passing is the size of the original image.<BR>
<BR>
I have tracked this down I believe to the fact that the pixelcontainer of the region of interest does not get<BR>
changed. ie<BR>
<BR>
if clip is a n instance of RegionOfInterestImageFilter<BR>
<BR>
clip-&gt;GetOutput()-&gt;GetPixelContainer()-&gt;Size() is constant no matter the region<BR>
passed to clip.<BR>
<BR>
Is this a bug. Should the GetPixelContainer() be updated by RegionOfInterestImageFilter ?<BR>
Or is there a work around ?<BR>
<BR>
Thanks for the help.<BR>
<BR>
Glenn
</BODY>
</HTML>