print "A little demonstration of image transformations..." print "First let's get an image from the server." pmOpenImage(1, "server:tanimoto:mona-rgb.jpg") pmOpenImage(2, "server:tanimoto:mona-rgb.jpg") print "Let's set the source and destination." pmSetSource1(1) pmSetDestination(2) print "Now for Mona upside down." pmSetFormula("S1(x,ymax-y)") pmCompute() pmSleep(2000) # wait two seconds, please. print "And now for a blueish version of Mona." pmSetFormula("HSV(Hue1(x,y)+0.5,Sat1(x,y),Val1(x,y))") pmCompute() print "All done."
pmMessage("Here are Sally's transformations.", "Sally", 400,300,220,100) # download Sally's image and show her transformations pmMessage("Now for John's transformations.", "John", 400,300,220,100) # download John's image and show his transformations pmMessage("Now for Jill's transformations.", "Jill", 400,300,220,100) # download Jill's image and show her transformations pmMessage("Now for Mark's transformations.", "Mark", 400,300,220,100) # download Mark's image and show his transformationsEach person should include a copy of the team's file in their own Word document turned in. One member of the team should save a copy of the file using your team's name and upload it to INFACT, available to Group members.
Solutions are now available.