Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Explore a wealth of knowledge from professionals across various disciplines on our comprehensive Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

write a function that will take two inputs, a uint8 black and white image in1 and an integer number in2. it will return one output, a uint8 black and white image. your function should modify in1 such that: values above in2 are set to in2. values below in2 are set to in2/2. this modified image should be your output.