Image Stroking Effect Generation Using Directional Distance Maps
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing image processing methods for generating 'stroking' effects produce unnatural and single effects using linear grids or bar-shaped meshes, lacking realism.
Innovation Solution
Determine directional distance information from an original image, generate an initial image with effects using a noise map, and fuse it with the original image to create a target image with realistic effects.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If linear grid or bar-shaped mesh is used to generate stroking effect, then the effect can be generated, but the effect is single and unnatural
Solution Approach 1:
The patent applies parameter changes by transforming the traditional linear grid structure into a polar coordinate system with radial and angular components. By varying the radial distance and angular position parameters, the system generates diverse stroke patterns that radiate from contour points, creating more natural and varied stroking effects compared to fixed linear grids.
Solution Approach 2:
The patent introduces another dimension by transitioning from a 2D linear grid to a polar coordinate system with radial distance and angular position dimensions. This dimensional change allows strokes to emanate from contour points in multiple directions, adding spatial complexity and realism to the stroking effect.
2Productivity
If traditional stroking method is used, then the process is simple, but the generation speed is slow and effects are limited
Solution Approach 1:
The patent applies preliminary action by pre-calculating and storing the polar coordinate information (radial distance and angular position) for each pixel relative to contour points. This pre-computed directional distance information is stored in a lookup table, enabling rapid retrieval and application during image processing, thus accelerating the stroking effect generation while maintaining effect diversity.
Solution Approach 2:
The patent uses copying by creating a polar coordinate map that replicates directional information across the image space. This pre-computed coordinate map is copied and applied to multiple contour points, allowing rapid generation of consistent stroking effects across different regions without recalculating from scratch, thereby improving processing speed.
Data Source
AI summary
Embodiments of the disclosure provides a method and apparatus for generating an image with effects and a device and a storage medium. The method includes: determining directional distance information corresponding to an original image, wherein the directional distance information indicates grayscale information of a segmentation result of the original image or distance information between a pixel and an image segmentation boundary; generating an initial image with effects based on the directional distance information and a noise map; obtaining a target image with effects by fusing the initial image with the effects and the original image.


