ds= getDataSet('/home/jbf/project/autoplot/fun/pumpkin.jpg') rr= ds[:,:,0] gg= ds[:,:,1] bb= ds[:,:,2] r= where( rr.eq(255) .and( gg.eq(255) ) .and( bb.eq(255) ) ) alpha= replicate(255,ds.length(),ds.length(0)) alpha[r]= 0 img= bundle( alpha, rr, gg, bb ) plot(img) formatDataSet(img,'/tmp/pumpkin2.png')