Why raw_data in generate_features is 2d not 3d?

hello,
i tried to create a custom processing bloc by modifyong the edge-detection-processing-block and test it on color image.
When i read the raw_data matrix i always get a 2d image (gray level image) not a 3d image(color).
Why and how can i do to get a color image after reshape of raw_data matrix?
this my impulse project IMAGE

thanks an advance

after checking the dsp.py file carefully i converted the see that the img fromRGBA to RGB using the function .convert
img_color=img.convert(‘RGB’)