
Pixels are the smallest units of a digital image — think of them as the individual tiles in a mosaic. Each pixel holds color and intensity information, and by manipulating these values, we can transform how an image looks and feels.

Adds or subtracts a constant value to every pixel’s intensity (in grayscale) or to each channel (in color images) can increase or decrease brightness.

“But I need Contrast Enhancement” the Goblin said to the magic book, “Low contrast means everything blends into a soft haze and I’m old. How can I see like that?”

“Yes, I understand. High contrast means sharper differences between light and dark. So, it is a bit easier to read. Let me help you!” Jon said.

“And we also need to detect the edges automatically for this magical plates,” said the Goblin.

“Okk. Let’s use thresholding. Thresholding converts an image to black and white by setting a cutoff value. Pixels above the threshold become white; below become black.”

“It’s like turning your selfie into a chalk outline at a mystery scene!!”

“But it sounds great for edge detection or document scanning.”

“It’s used for OCR (Optical Character Recognition), Object detection, and Stylized art effects as well!” said Jon.