I'm having some troubles with applying a vector filter on RGB image, I'm not getting errors but I'm not getting an output which makes sense either. I'm losing at least one of the color channels somehow but I don't know what I'm doing wrong. You can find the application I'm trying to implement in the screenshot attached and I also attach the code to this entry. Looking forward to your help.
For the image I'm trying to upscale, you can get it here.
Thanks in advance