HOME

TheInfoList



OR:

Image embossing is a
computer graphics Computer graphics deals with generating images with the aid of computers. Today, computer graphics is a core technology in digital photography, film, video games, cell phone and computer displays, and many specialized applications. A great de ...
technique in which each
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device. In most digital display devices, pixels are the ...
of an image is replaced either by a highlight or a shadow, depending on light/dark boundaries on the original image. Low contrast areas are replaced by a gray background. The filtered image will represent the rate of color change at each location of the original image. Applying an embossing
filter Filter, filtering or filters may refer to: Science and technology Computing * Filter (higher-order function), in functional programming * Filter (software), a computer program to process a data stream * Filter (video), a software component tha ...
to an image often results in an image resembling a paper or metal embossing of the original image, hence the name.


Technical details

The emboss filter, also called a directional difference filter,"Computer imaging: Digital image analysis and processing (Second ed.)" by Scott E Umbaugh, (2010) will enhance edges in the direction of the selected convolution mask(s). When the emboss filter is applied, the filter matrix is in convolution calculation with the same square area on the original image. So it involves a large amount of calculation when either the image size or the emboss filter mask dimension is large. The emboss filter repeats the calculation as encoded in the filter matrix for every pixel in the image; the procedure itself compares the neighboring pixels on the image, leaving a mark where a sharp change in pixel value is detected. In this way, the marks form a line following an object's contour. The process yields an embossed image with edges highlighted. Four primary emboss filter masks are: \left( \begin 0 & +1 & 0 \\ 0 & 0 & 0 \\ 0 & -1 & 0 \end \right) \left( \begin +1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & -1 \end \right) \left( \begin 0 & 0 & 0 \\ +1 & 0 & -1 \\ 0 & 0 & 0 \end \right) \left( \begin 0 & 0 & +1 \\ 0 & 0 & 0 \\ -1 & 0 & 0 \end \right) According to the need to enhance edge details from different directions, we can also rotate the emboss filter masks, such as: \left( \begin -1& 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & +1 \end \right) \left( \begin 0 & 0 & -1 \\ 0 & 0 & 0 \\ +1 & 0 & 0 \end \right) To control the depth of edges, we can enlarge the emboss filter masks, such as: \left( \begin +1 & 0 & 0 & 0 & 0 \\ 0 & +1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & -1 & 0 \\ 0 & 0 & 0 & 0 & -1 \\ \end \right)


Example

Two different emboss filters are applied to the original photo. Image (a) is the result of a 5×5 filter with the +1 and -1 in the horizontal direction, which emphasizes vertical lines. Image (b) is the result of a 5×5 filter with the +1 and -1 in the vertical direction; it emphasizes horizontal lines. Since the entries of a given emboss filter matrix sum to zero, the output image has an almost completely black background, with only the edges visible. Adding a 128 value of brightness (half the 0-255 range) to each pixel creates the final, displayed images with grey-toned backgrounds: {{multiple image , align = center , direction = horizontal , total_width = 750 , image_gap = 25 , header = Sample photo with horizontal and vertical embossing , image1 = Original photo to emboss.jpg , caption1 = Original image , image2 = With horizental emboss filter.jpg , caption2 = Image (a): horizontal emboss , image3 = With vertical emboss filter.jpg , caption3 = Image (b):vertical emboss


See also

*
Sobel operator The Sobel operator, sometimes called the Sobel–Feldman operator or Sobel filter, is used in image processing and computer vision, particularly within edge detection algorithms where it creates an image emphasising edges. It is named after ...


References


External links


Bump map - Embossing
Computer graphic techniques