Abstract
In this paper, we present a non-photo-realistic image rendering (NPR) technique based on integrated filtering approach. The proposed method integrates 2D anisotropic filter, 2D difference of Gaussian filter, modified coherence shock filter and mean curvature flow (MCF). Coherence shock filter is applied iteratively to enhance the edge information in an image. Dithering with a fixed deviation value is also applied to produce a rendering effect in the abstracted image. The proposed method can be applied to color as well as gray scale images to produce stylized and cartoon like images. The method does not require any kind of post processing for image abstraction. Implementation of the proposed work is carried out in Mat Lab environment using local library functions. Efficacy of the proposed work has been corroborated by conducting experiments on various types of images and the results have also been compared with the other contemporary work. The approach is found to be computationally efficient in producing effective cartoon like images being simple in terms of its implementation.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Real time captured picture recognition often encloses more information than required to communicate proposed information. So image abstraction can be used to reduce unnecessary information in an image and preserving relevant information for interpretation. More formally, image abstraction refers to the process of simplifying complex scène by removing irrelevant information that is not mandatory for particular event [1,2]. Image abstraction has been advanced technology under NPR and has been an effective visual tool for many applications. Image abstraction has talented to suggest the assured aspects and real time informative scene more effectively.
In this paper, an integrated filter based approach for image abstraction is proposed. We made an attempt to effectively integrate anisotropic filter, Difference of Gaussian filter and coherence shock filter followed by Mean Curvature Flow (MCF) and dithering to produce more effective abstracted image. We have exploited the features of these filters through integration for better image abstraction useful for many applications. The abstraction process is not confined to any shape or color. The proposed abstraction technique is capable to convey colors, regions, shapes as well as a particular event in an effective manner. Any image abstraction technique is essentially suppress the random and real time noise, preserving image structure, shape and handle poor lighting conditions in an image and hence it is a challenging task in the research area of image processing.
Image abstraction is most useful for numerous applications such as smoothing isophote curves, stipple drawing, mosaics engraving, simplifying visual cues, cubist rendering, cartoon rendering of 3D object, animated movies, noise suppression, pen and pencil sketch illustration to name a few. It is also useful to solve the optimization problem in engineering and scientific applications.
2 Related Works
Several researchers have made an attempt to propose effective techniques for image abstraction. Image segmentation, color quantization, or feature preserving smoothing techniques are used for image abstraction. Edge preserving filters [3] are also used to automatically create stylized abstractions from images or videos.
A familiar approach to create non photo realistic representation of an image is to transform an image into abstracted image using an interactive or automatic technique [4]. Another interactive tool approach, where the brush strokes are placed automatically was introduced by Hays and Essa [5] in the year 2004.
DeCarlo et al. [6] proposed stylization and abstraction of photographs based on mean shift color image segmentation. The technique transforms images into a line-drawing style using bold edges and large regions of constant color. But the method may not produce satisfactory results for images with complex structures. Comaniciu et al. [7] and Collomosse et al. [8] extended the mean shift segmentation to video to produce a temporally coherent cartoon like image sequence. Wang et al. [9] used anisotropic mean shift filter for handling elongated structures often found along temporal axis of a video. Wen et al. [10] also used mean shift segmentation algorithm for generating a colored sketch from a photograph. Lecot and Levy [11] developed a triangle based image segmentation algorithm for abstract and stylistic bitmap-to-vector image conversion. Though the image segmentation is a natural choice of tool for the task of image abstraction, a crude segmentation often results with incomplete abstraction, which further requires some post processing like curve fitting, editing, smoothing and stylizing.
Filter based image abstraction methods have also been proposed in the literature. Winnemoller et al. [12] showed that bilateral filter can be used to abstract color images as well as video. Orzan et al. [13] developed a multi-scale image abstraction system based on gradient reconstruction. Gooch et al. [14] proposed Artistic vision: Painterly Rendering Using Computer Vision Techniques based on Difference-of-Gaussians (DOG) filter. In their work, they have considered raster image as input and obtained a painting—like image composed of strokes rather than pixels. Kang and Lee [15] proposed shape simplifying image abstraction method for producing stylistic abstraction of a photograph. The method used mean curvature flow in conjunction with shock filter to simplify both shape and color simultaneously. But an obvious limitation of this method is that the curvature flow contracts small circular shapes very quickly. If the circular shape is of high importance in certain cases, it needs to be masked before running this algorithm. Kang et al. [16] proposed image and video abstraction using anisotropic Kuwahara filter. This filter effectively removes the details in high contrast edges by preserving shape boundaries in low contrast region. But the Kuwahara filter is unstable in the presence of high noise in the source image and suffers from block of artifacts. Kang et al. [17] proposed Flow-Based Image Abstraction technique based on line and region extraction filters guided by Edge Tangent Flow (ETF) that describes the flow of salient features in the image. The method may not perform satisfactorily when there are large number of irregularities and random noise in a poor intensity images.
From the literature survey, it is found that the methods proposed for image abstraction possess certain limitations in terms of quality output or in handling type of input image. Also the methods have been implemented using GPU devices and CUDA languages, which demands high computation and sophisticated environment for implementation. Since the implementation of the proposed work is carried out in MatLab environment using local library functions, it is simple and does not require any sophisticated high computing environment.
Rest of the paper is organized as follows: Sect. 3 describes the proposed methodology, Sect. 4 explains the experimental analysis and Sect. 5 presents the conclusion.
3 Proposed Method
The proposed method of image abstraction involves five major steps. First, anisotropic filter is applied to suppress the irregularities and to preserve the prominent edge boundaries in an image. However, some edge information may not be clear and need to be enhanced. In the second step, a Difference of Gaussian filter is applied to make the uncleared edges more clear. In the third step, we apply coherence shock filter iteratively to provide sharpening effect to the image. The image obtained at this stage may contain surface irregularities due to sharpening and need to be suppressed. Hence in the fourth step, we apply MCF to remove the irregularities in the image surface. Finally, we apply dithering to create the misapprehension or non realistic of color depth in an image with a limited color palette, which produces artistic effect without any upsetting effect to human eye. The following sections provide a brief description about the filters used in the proposed methodology.
3.1 2D Anisotropic Filter
Anisotropic filter is used to smooth and enhance edges and texture in an image. This filter effectively suppresses the unwanted noises from input images and produces best rendering and noise free images. Implementation of anisotropic filter involves various steps as follows:
The first step is to calculate the local gradient information of a color image I where I = (x, y) denotes pixel information.
Subsequently, the local adoptive smoothing based on the local gradient information of an image is performed. Further, the smoothing kernel is locally calculated choosing Gaussian forms given in [17–20]
Here, dir is the location vector, where a+ and a− are the vectors perpendicular to the local gradient. Values σ1 and σ2 are appropriately chosen. The Color image orientation and region direction derivatives information is calculated using the formula.
The local gradient is calculated to estimate important portions in an image by means of Eigen vector and Eigen values. It can be mathematically represented as follows.
With the help of sequential gradient magnitude, we calculate the largest Eigen value in a given matrix. This can be mathematically represented as
The gradient magnitude is computed using finite difference approximation for partial differential equation as follows.
Anisotropic filter not only smooth the image but it also gives more importance to preserve the edges gradient strength. In this work, we estimate the corner and edge strength for the purpose of preserving corners and also to smooth edges by using the equation,
During smoothing and local orientation protection process, corners should be preserved. A corner is identified as an isotropic with large local gradient strength. We can estimate the corner strength by:
How To preserve corners, we divide the standard deviations by another 1 + C. The final variances in (1) are then given by:
Where a is an image noise factor. The variance of the image noise σ can be estimated globally by calculating the images local variances. Based on local orientation estimation, we can measure the noise factor. Anisotropic filter preserves large homogeneous and heterogeneous noise free regions.
3.2 2D Difference of Gaussian Filter
Difference of Gaussians filter [12] is used to smooth an image as well as useful for line extraction. The filter is also used to show significant high discontinuities. Two Gaussian filters with different blurring radius are formed and the respective images after Gaussian filter are obtained. The resulting images are subjected to subtraction operation to obtain the result. Image smoothing can be performed by convolution using appropriate spatial mask. Applying the spatial mask to an input image suppresses the high frequency spatial information. A general DoG is used to remove unwanted noise and for line extraction. The most important parameters for DoG filter are the smoothing radii (σ) for the two Gaussian blurs [21,22]. It is observed that a small increasing in the radius tends to give thicker appearing edges and a small decreasing tends to increase the threshold for recognizing something as an edge. In most cases, a best result is obtained when the value for (radius-2) is smaller than the (radius-1). DoG equation can be mathematically represented as follows.
3.3 Modified 2D Coherence Shock Filter
2D Coherence Shock Filter [23–25] is an edge preserving and smoothing filter, which gives more importance to direction of the edges in an image. It involves either a dilation or erosion process depending on whether the pixel is present in the maximum or minimum influence zone.
The filter creates shocks between maximum and minimum influence zone and it represents that the shock filter is within the range of original image. The modified version of the coherence shock filter makes the edges more sharp and helps more accurate segmentation of region of interest. A slight modification to coherence shock filter is accomplished as follows:
Here, I is the gradient image and Ismooth is an anisotropic filtered image. The modified coherence shock filter combines the gradient image, anisotropic filtered image and −sign (∆u). The modified coherence shock filter gives a shining effect to the image by preserving hidden edges.
3.4 Mean Curvature flow
Mean Curvature flow (MCF) is used to remove the irregularities from complex background images. It effectively protects and conveys directional characteristics of shapes, features and textures. MCF is capable to identify luminance contour on the image for suppressing unwanted irregular curves, removing noise and irregular peaks. It suppresses and elaborates the irregular curves in an input image. MCF can be mathematically expressed as [15],
3.5 Dithering
It is a technique used to create the misapprehension/non-realistic of color depth in images with a limited color palette. The aim of dithering is to decrease the number of colors and to provide artistic effect to an image without any upsetting effect to human eye. It contributes more to convert original image into cartoon, half tone like image. The idea of dithering is mainly based on quantization and color approximation technique [26]. In this work, we used the dithering function supported by Mat Lab.
The proposed method of integrated filter-based approach to image abstraction can be algorithmically expressed as follows:
Algorithm:
An integrated filter based approach for image abstraction
-
Input: Raw image
-
Output: Abstracted image
-
Method:
- Step 1: :
-
Apply anisotropic filter for preserving low contrast regions in an image.
- Step 2: :
-
Apply Difference of Gaussian filter for extracting dominant edges.
- Step 3: :
-
Apply shock filter for recovering hidden edges.
- Step 4: :
-
Apply mean curvature flow to regularize the irregular isotope curves in an image.
- Step 5: :
-
Apply dithering for reducing the color space.
-
Algorithm ends.
4 Experimentation
In order to study the efficacy of the proposed technique for image abstraction, we conducted experiments on various types of natural images. In this section, we are presenting few of the results obtained from the proposed method. In our experimentation, the kernel value σ for anisotropic filter is set to 3.0 and anisotropic filtering half-width to 5.0. In Gaussian filter, the σ1 and σ2 values are set to 3.0 to 2.9 and the deviation value\( \mu \) is set to 0.5. For shock filter, the deviation value is set to 3.02 and the number of iterations is set to 40. The MCF is designed using local isophote curvature and an 8 bit dithering function is applied to reduce the color space. Figure 1 shows the results of varies stages of the proposed method of image abstraction.
We have also conducted an experiment on the image used in [15]. Figure 2a is the input image and Fig. 2b, c shows the result of the method in [15] and the proposed method respectively. It can be observed that the proposed method produced the better output when compared to the method used in [15].
We have also conducted an experiment on natural image and the proposed method has produced the encouraging result. Figures 3a and 4a is an input image and Figs. 3b– f and 4b– h show the result of various stages of the proposed method of image abstraction and stylization.
5 Conclusion
this paper, we have presented an integrated filter-based approach to produce abstracted and stylized images. The proposed method incorporates the features of various filters to produce the better result. The method does not require any individual brush strokes to produce abstraction and stylized effect. The proposed method is found to be effective for all types of blurred images, high contrast images, and complex background images. The experimental results obtained for various types of images are highly encouraging and are comparable with the other abstraction techniques. The approach is found to be computationally efficient in producing effective cartoon like images being simple in terms of its implementation.
References
Hertzmann A (2001) Paint by relaxation. In: Proceedings of computer graphics international, pp 47–54
Decarlo D, Finkelstein A, Rusinkiewicz S, Santella A (2003) Suggestive contours for conveying shape. In: Proceedings of ACM Siggraph’03, pp 848–855
Nagao M, Matsuyama T (1979) Edge preserving smoothing. Comput Graph Image Process 9:394–407
Haeberli P et al (1990) Paint by number: abstraction image representation. Comput graph 24:207–214
Hays J, Essa IA (2004) Image and video based painterly animation. In: Proceedings of the ACM NPAR 2004, pp 113–120
Decarlo D, Santella A (2002) Stylization and abstraction of photographs. In: Proceedings of ACM SIGGRAPH ’02, pp 769–776
Comaniciu D, Meer P (2002) Mean shift: a robust approach toward feature space analysis. IEEE Trans Pattern Anal Mach Intell 24:603–619
Collomosse JP, Rowntree D, Hall PM (2005) Stroke surfaces: temporally coherent non-photorealistic animations from video. IEEE Trans. Visual Comput Graphics 11(5):540–549
Wang J, Xu Y, Shum HY, Cohen MF (2004) Video tooning. ACM Trans Graphics 23(3):574–583
Wen F, Luan Q, Liang L, Xu YQ, Shum H-Y (2006) Color sketch generation. In: Proceedings of non-photorealistic animation and rendering (NPAR’06), pp 47–54
Lecot G, lévy B (2006) Ardeco: automatic region detection and conversion. In: Euro graphics symposium on rendering 2006
Winnemoller H, Olsen S, Gooch B (2006) Real-time video abstraction. In: Proceedings of the ACM Siggraph’06, pp 1221–1226
Orzan A. Bousseau A, Barla P, Thollot J (2007) structure-preserving manipulation of photographs. In: Proceedings of the non-photorealistic animation and rendering (npar’07), pp 103–110
Gooch B, Coombe G, Shirley P (2002) Artistic vision: painterly rendering using computer vision techniques. In: Proceedings of the non-photorealistic animation and rendering (NPAR’07), pp 83–90
Kang H, Lee S (2008) Shape-simplifying image abstraction. IEEE Trans Comput Graphics 28
Kang H et al (2009) Image and video extraction by anisotropic kuwahara filtering. pp 866–872
Kang H, Lee S, Chui CK (2009) Flow based image abstraction. In: Proceedings of the non-Photorealistic animation and rendering, vol 15(1), January/February 2009
Weickert J (1998) Anisotropic diffusion in image processing. Teubner-verlag, stuttgart
Greenberg S, Kogan D (2006) Improved structure-adaptive anisotropic filter. Pattern Recogn Lett 27(1):59–65
Perona P, Malik J (1990) Scale-space and edge detection using anisotropic diffusion. IEEE Trans Pattern Anal Mach Intell 12(7):629–639
Ian T, Younga Lucas J (1995) Recursive implementation of the Gaussian filter, Signal Processing 44(2):139–151
Gomez G (2000) Local smoothness in terms of variance: adoptive Gaussian Filter. In: Proceedings of BMVC, vol 2, pp 815–824
Weickert J (1999) Coherence-enhancing diffusion filtering. Intern J Comput Vis 31(2-3):111–127
Osher S, Rudin L (1990) Feature-oriented image enhancement using shock filters. SIAM J Numer Anal 27(4):919–940
Grayson M (1986) The heat equation shrinks embed plane curves to round points. Differ Geom 26:285–314
Omohundro SM (1947) Floyd-steinberg dithering. International computer science institute, California, p 94704
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer India
About this paper
Cite this paper
Nagendra Swamy, H.S., Pavan Kumar, M.P. (2013). An Integrated Filter Based Approach for Image Abstraction and Stylization. In: Swamy, P., Guru, D. (eds) Multimedia Processing, Communication and Computing Applications. Lecture Notes in Electrical Engineering, vol 213. Springer, New Delhi. https://doi.org/10.1007/978-81-322-1143-3_20
Download citation
DOI: https://doi.org/10.1007/978-81-322-1143-3_20
Published:
Publisher Name: Springer, New Delhi
Print ISBN: 978-81-322-1142-6
Online ISBN: 978-81-322-1143-3
eBook Packages: EngineeringEngineering (R0)