powered by
Remove alpha channel and store as attribute
rm.alpha(im)
an image with only three RGB channels and the alpha channel as attribute
an image with 4 RGBA colour channels
Simon Barthelme
flatten.alpha
cimg.limit.openmp() #An image with 4 colour channels (RGBA) im <- imfill(2,2,val=c(0,0,0,0)) #Remove fourth channel rm.alpha(im) attr(rm.alpha(im),"alpha")
Run the code above in your browser using DataLab