matlab - How create image overlays? change edges color -


how create image overlays? change edges color: changing edges green, @ first used 'sobel' overlay part have error: "img must array of either grayscale or rgb images: writevideo(writer,double(out));" why?

    out_red(bw)=0;     out_green(bw)=255;     out_blue(bw)=0;       writevideo(writer,double(uint8(out)));   close(writer); 

you set mistake entire img each color channel, should instead:

out_red=img(:,:,1); out_green=img(:,:,2); out_blue=img(:,:,3); 

and end writevideo(writer, uint8(out));


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -