Where did you find/get this code? If from an example or script, it might help to know what the example or script was trying to do? At least provide you input and output example. Testing your code on an arbitrary image does not change the input.

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.