
img = imread('Test/New_test.jpg');
img_real = imread('Test/test.jpg');



            colr_1 = [255 250 250];
            colr_2 = [1 30 88];
            l1=round(linspace(colr_1(1),colr_2(1),900));
            l2=round(linspace(colr_1(2),colr_2(2),900));
            l3=round(linspace(colr_1(3),colr_2(3),900));

            
            img_1=uint8 (img);
      
            for x=60:600 %length
                for r = 1:size(img_1,1)
                    
                    if ((sum(img(r,x,:))>3*140))     %140 Farbwert wo Farbverlauf sichtbar ist
                        img_real(r,x,1)=l1(x);
                        img_real(r,x,2)=l2(x);
                        img_real(r,x,3)=l3(x);
                    end                   
                end                
                "col update complete"
                figure(1), imshow(img_real)
                
                
            end

