[Insight-developers] Rebind Support: recent change breaks backward compatibility

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Jan 27 21:24:24 EST 2012


Bill,

1) This example no longer needs the adaptors as SmoothingRecursiveGaussianImageFilter works with Images of RGBPixel, so updating the example is easiest solution.

2) With how I have use the rebind method previously, I would expect a Rebind on an Adaptor to return an Image of thing... most likely but this is not entirely clear. Mostly, I have used the class to get an image type for an output of a filter or an intermediate image type. I believe all of the adaptors have an output that is more of an Image, then a VectorImage. This means that it's likely a single class added to the ImageAdaptor superclass could take care of all of out adaptors.

3) Depending on the importance of this first RC that is coming up very quickly we could just revert the default output image type for the smoothing filter.

4) I didn't realize ( or perhaps forgot ), that the default template parameter was required to be evaluated even when a parameter is provided. This means that the Rebind class will be required of all adaptors and image types which use the robust filters which use this facility.

Please advise,
Brad


On Jan 27, 2012, at 4:50 PM, Bill Lorensen wrote:

> Brad,
> 
> This Wiki Example:
> http://itk.org/Wiki/ITK/Examples/Smoothing/SmoothingRecursiveGaussianImageFilter
> 
> no longer compiles:
> http://www.cdash.org/CDash/viewBuildError.php?buildid=1951705
> 
> I believe this is because of a recent checkin of your.
> 
> Bill



More information about the Insight-developers mailing list