0 / 34
Scenario

Image Pixel Manipulation

๐Ÿ“‹ Context

You're working with a small 4ร—4 grayscale image represented as a NumPy array. You need to manipulate pixel values โ€” normalize, threshold, and invert.

1
2
3

Step 1: Create Image Data

๐ŸŽฏ Task

Create a 4ร—4 array image with pixel values:
[[10,50,200,255],[30,80,150,220],[0,100,180,240],[60,120,90,170]]
Print it.

np.array([[10,50,200,255], ...])
Related lessons: Lesson 1, Lesson 8, Lesson 11, Lesson 17
exercise.py
โŒ˜โŽ run ยท โŒ˜โ† โ†’ nav
โ–ถ Output
Run your code to see output here.