Can anyone here tell me why

boolIsImageGreen(Image img); is computationally expensive than

boolIsImageGreen(Image *img); which was said by the MIT Notes faster.