Question: Image Processing by MAPLE

Dear all, Is it possible for maple to do image cropping? The problem goes like this: i have two images. Image A: a image containing a random shape which is enclosed. Image B: is a normal image What i want to do is: Crop Image B using the shape in Image A. which comes to my mind is: Step 1: read a list of pixels representing the shape in IMAGE A. Step 2: set the pixels in IMAGE B which are not equal to the list of pixels to be "transparent" Is it achievable in Maple? Or matlab can do it also? Thanks all.
Please Wait...