IJSRP, Volume 14, Issue 4, April 2024 Edition [ISSN 2250-3153]
Ashley A. Stewart
Abstract:
This paper delves into the realm of image processing within the context of design, harnessing the power of the OpenCV library to enact a trilogy of distinctive transformations on images. Firstly, the White to Colored Transformation leverages the cv2.applyColorMap function, which transmutes grayscale images into pseudo-colored representations, imbuing formerly achromatic visuals with a vivid palette. This process, exemplified through the use of the COLORMAP_JET color map, yields visually arresting and dynamically expressive images. The Colored to White Transformation pursues a contrasting objective, simplifying complex scenes into minimalist compositions. Through grayscale conversion and subsequent application of binary thresholding, high-intensity regions are isolated, yielding bold white contours against a black backdrop. This innovative reductionist approach endows images with an aura of clarity and simplicity. Lastly, the Sketch Transformation employs a multi-step process, commencing with grayscale conversion, followed by inversion to produce a negative. The introduction of a Gaussian blur emulates the characteristic softening seen in pencil sketches. The blurred negative is once again inverted, acting as a divisor for the original grayscale image. The resultant output mirrors the aesthetics of a hand-drawn pencil sketch, with intricate details set against a textured background, evoking a palpable sense of artistry by hand. These transformations collectively demonstrate the malleability and expressive potential that image processing, facilitated by OpenCV, offers within the realm of artistic interpretation.