tomatsu #1899(2007/08/06 02:50 GMT) [ Pnuts ] Rating1/1=1.00
1 2 3 4 5 6 7 8 9 10 11 12
import java.awt.image.* b=list(project(range(255,0), byte)) invert_op = LookupOp(ByteLookupTable(0,[b,b,b]), null) function invert(imagefile, dest){ im = readImage(imagefile) im2 = makeImage(im.width, im.height, null, im.type) invert_op.filter(im, im2) writeImage(im2, dest) } invert("white-pants.jpg", "black-pants.jpg")
Rating1/1=1.00-0+
1 reply [ reply ]
takano32 #1979(2007/08/07 09:55 GMT) Rating0/0=0.00
[ reply ]
tomatsu #1899() [ Pnuts ] Rating1/1=1.00
import java.awt.image.* b=list(project(range(255,0), byte)) invert_op = LookupOp(ByteLookupTable(0,[b,b,b]), null) function invert(imagefile, dest){ im = readImage(imagefile) im2 = makeImage(im.width, im.height, null, im.type) invert_op.filter(im, im2) writeImage(im2, dest) } invert("white-pants.jpg", "black-pants.jpg")Rating1/1=1.00-0+
1 reply [ reply ]