A method and device for generating a shadow special effect map

A shadow and special effect technology, applied in the field of image processing, can solve the problems of unreal shadow special effects, inability to add shadow special effects, poor visual effects, etc., and achieve the real effect of shadow special effects

Active Publication Date: 2018-09-11
北京朱比特科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

from figure 2 It can be seen from the figure that the shadow effect is added to the entire picture, not to the five-pointed star in the picture, and what the user really wants may be to add a shadow effect to the five-pointed star in the picture, that is, to add only to the outline of the rectangular frame The shadow effect cannot be added to the inner contour connected to the middle transparent area
Like this, prior art just can't satisfy user's demand, the shadow special effect shown like this is unreal, and visual effect is not good

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for generating a shadow special effect map
  • A method and device for generating a shadow special effect map
  • A method and device for generating a shadow special effect map

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0073] The first implementation mode is: obtain the pixel two-dimensional matrix corresponding to the target picture, analyze the transparency parameter of each pixel in the pixel two-dimensional matrix, if the transparency parameter in the target picture meets the number of pixels in the preset transparency threshold range If it is greater than or equal to the preset number of pixels M, it is determined that the target picture contains a transparent area, where M≥1. The specific value of M can be determined by those skilled in the art.

[0074] In the above-mentioned first embodiment, all pixels in the target picture can be traversed, the transparency parameters of all pixels can be analyzed, and then statistics can be made. If the number of pixels in the target picture whose transparency parameters meet the preset transparency threshold range is greater than If it is equal to the preset number of pixels M, then it is determined that the target picture contains a transparent ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a shadow effect picture generating method and apparatus. The method includes the following steps that: a shadow effect addition instruction of a user is received, and a target shadow effect is determined; target canvas is established, a first duplicate of a target picture is creased on the established target canvas, the deviation parameters of any pixel coordinate in the first duplicate of the target picture are the same with the deviation parameters of the target shadow effect relative to the deviation parameters of a corresponding pixel coordinate in the target picture, wherein the deviation parameters include deviation direction and deviation distance; the color parameters of the pixels of the first duplicate of the target picture are replaced with the color parameters of the target shadow effect; and a second duplicate of the target picture is creased at a position on the target canvas which has the same coordinate with the target picture, and the second duplicate of the target picture is made to cover the first duplicate of the target picture of which the color parameters have been replaced, and the shadow effect picture of the target picture can be generated. Compared with the prior art, the shadow effect obtained through utilizing the method and device of the invention is more real.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a method and device for generating shadow special effect images. Background technique [0002] Now, people can use image processing software to process special effects on some of their favorite pictures to increase interest, for example, shadow effects can be added to pictures. [0003] However, in the prior art, shadow effects are usually added to the entire picture, that is, shadow effects are added according to the actual outline of the picture. Such as figure 1 As shown in the picture, a rectangular box is displayed in the picture, and the middle of the rectangular box is a transparent area. After using the existing technology to add shadow effects to it, the obtained effect picture is as follows figure 2 shown. from figure 2 It can be seen from the figure that the shadow effect is added to the entire picture, not to the five-pointed star in the picture, and what the us...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06T15/60
Inventor 魏伟
Owner 北京朱比特科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products