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
Post a Comment