[Insight-developers] Changes to itkRGBPixel and itkRGBAPixel
Lorensen, William E (CRD)
lorensen@crd.ge.com
Mon, 15 Oct 2001 16:01:14 -0400
Folks.
We've refactored RGBPixel and RGBAPixel to inherit from Array. This gives a more consistent
interface. They still have special methods to Set/Get components. There is a difference in
initialization. In the past you could initialize an RGBPixel as follows:
itkRGBPixel<float> foo = {{1, 2, 3}};
Now you must do the following:
itkRGBPixel<float> foo; foo = 1, 2, 3;
There are also other initialization forms that are shown in the documentation.
I changed Tests/Examples that used the former initialization.
Bill