It should be gray scale images. If you couldn’t find, use colored images and convert it to gray scale by any built in function. The conversion step will not be included in the processing time

that looks like a homework assignment.

why would you just post that here verbatim, with no further comment?

don’t expect anyone to do your homework for you.