CN102739971A - Method for realizing special effect of oil painting of subtitles - Google Patents

Method for realizing special effect of oil painting of subtitles Download PDF

Info

Publication number
CN102739971A
CN102739971A CN2011101205310A CN201110120531A CN102739971A CN 102739971 A CN102739971 A CN 102739971A CN 2011101205310 A CN2011101205310 A CN 2011101205310A CN 201110120531 A CN201110120531 A CN 201110120531A CN 102739971 A CN102739971 A CN 102739971A
Authority
CN
China
Prior art keywords
pixel
interval
rgb value
value
dimensional storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101205310A
Other languages
Chinese (zh)
Other versions
CN102739971B (en
Inventor
沈季
蔡欢
刘衡娜
陈丽爱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201110120531.0A priority Critical patent/CN102739971B/en
Priority claimed from CN201110120531.0A external-priority patent/CN102739971B/en
Publication of CN102739971A publication Critical patent/CN102739971A/en
Application granted granted Critical
Publication of CN102739971B publication Critical patent/CN102739971B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)

Abstract

The embodiment of the invention discloses a method for realizing a special effect of oil painting of subtitles. By selecting and changing a gray value, RGB (Red, Green, Blue) values of all pixel points are corrected so as to achieve the special effect of oil painting; artistic effects of images and subtitles are enhanced; television artistic effects are enriched; and meanwhile calculation and storage resources are saved; the manufacturing efficiency is high; and the time and the resource are saved.

Description

A kind of method that realizes captions oil painting special efficacy
Technical field
The present invention relates to fields such as captions, image processing, particularly a kind of method that realizes captions oil painting special efficacy.
Background technology
In existing program making and broadcast and correlative technology field, in the process to the program material making, in order better literal to be showed; Need a large amount of captions to synthesize, particularly in large-scale 3D film, material are made and play, in order to obtain better effect; Usually need in captions, insert the special efficacy effect, improve constantly, will carry out great amount of calculation by the GPU of graphic display card usually along with what special efficacy was required; In order to obtain the picture of high-quality; Therefore to the graphic operation processing speed, because calculating can relate to and call the GPU function and hardware is had higher requirement, the oil painting special efficacy of captions is exactly wherein a kind of.The oil painting special efficacy is meant and lets the captions image that perhaps font produces the variation effect of artistic oil painting.
In the prior art; Film titler in making, playing process, provide hardware and software environment preferably in oil painting captions special efficacy, and handles the restriction that the material processing speed receives the GPU disposal ability; And when playing, also there is a same requirement; In oil painting captions special efficacy building-up process, because handled a large amount of image files, so file needs bigger memory space and spatial cache.
Between above situation, in realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
Make in oil painting captions special efficacy, in the building-up process owing to need the jumbo memory space and the speed of service fast; So having relatively high expectations to graphic display card and GPU; In carrying out simple special efficacy building-up process, caused the waste of system, simultaneously; Also have many-sided restrictions such as the speed of service and disposal ability for playback equipment, the make one's cross making and the use of act special efficacy of oil supply brought restriction.
Summary of the invention
The invention provides a kind of method that realizes captions oil painting special efficacy, increased image, captions font artistic effect, enriched the video art effect, save computing and storage resources simultaneously, make efficiency is high, has practiced thrift time and resource.
Concrete grammar is following:
Select template radius parameter and smoothness parameter;
According to the template radius parameter search rectangle frame size is set and is (2M+1) * (2M+1), wherein the value of M is identical with the template radius parameter;
According to the smoothness parameter pixel grey scale interval 0~255 is divided into a N five equilibrium interval, wherein the value of N is identical with the smoothness parameter;
Set up the memory block of 2 two dimensions, with the rgb value of each pixel in the target captions according to pixels dot sequency read in first two-dimensional storage district;
According to the gray scale formula, calculate each gray values of pixel points, read in second two-dimensional storage district according to the pixel order;
Travel through all pixels, revise the rgb value of this pixel, the concrete grammar step is following:
In second two-dimensional storage district; With this pixel is the center; Judge which interval each pixel falls in the said search rectangle frame; Said which interval that falls into is meant which interval is this gray values of pixel points belong to, when a pixel falls into certain interval simultaneously, for this interval number statistical value adds 1;
Select the maximum interval of number statistical value, calculate the average gray of all pixels that fall into this interval, as this gray values of pixel points;
According to contrary gray scale formula, calculate the rgb value of this point, and replace the original rgb value of this pixel in first two-dimensional storage district with this rgb value;
With the each point rgb value that writes down in first two-dimensional storage district, play up the target captions again.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below.
Fig. 1 is a kind of flow chart of realizing the method for captions oil painting special efficacy of the present invention.
Embodiment
To combine accompanying drawing below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description.
The embodiment of the invention provides a kind of method that realizes captions oil painting special efficacy, and is as shown in Figure 1, and the practical implementation step is following:
Select template radius parameter and smoothness parameter;
According to the template radius parameter search rectangle frame size is set and is (2M+1) * (2M+1), wherein the value of M is identical with the template radius parameter;
According to the smoothness parameter pixel grey scale interval 0~255 is divided into a N five equilibrium interval, wherein the value of N is identical with the smoothness parameter;
Set up the memory block of 2 two dimensions, with the rgb value of each pixel in the target captions according to pixels dot sequency read in first two-dimensional storage district;
According to the gray scale formula, calculate each gray values of pixel points, read in second two-dimensional storage district according to the pixel order;
Travel through all pixels, revise the rgb value of this pixel, the concrete grammar step is following:
In second two-dimensional storage district; With this pixel is the center; Judge which interval each pixel falls in the said search rectangle frame; Said which interval that falls into is meant which interval is this gray values of pixel points belong to, when a pixel falls into certain interval simultaneously, for this interval number statistical value adds 1;
Select the maximum interval of number statistical value, calculate the average gray of all pixels that fall into this interval, as this gray values of pixel points;
According to contrary gray scale formula, calculate the rgb value of this point, and replace the original rgb value of this pixel in first two-dimensional storage district with this rgb value;
With the each point rgb value that writes down in first two-dimensional storage district, play up the target captions again.
The present invention includes but be not limited to the embodiment of above description, any those skilled in the art need not pay that creative work just can think of variation all should fall into protection scope of the present invention.

Claims (1)

1. a method that realizes captions oil painting special efficacy is characterized in that, may further comprise the steps:
Select template radius parameter and smoothness parameter;
According to the template radius parameter search rectangle frame size is set and is (2M+1) * (2M+1), wherein the value of M is identical with the template radius parameter;
According to the smoothness parameter pixel grey scale interval 0~255 is divided into a N five equilibrium interval, wherein the value of N is identical with the smoothness parameter;
Set up the memory block of 2 two dimensions;
With the rgb value of each pixel in the target captions according to pixels dot sequency read in first two-dimensional storage district;
According to the gray scale formula, calculate each gray values of pixel points, read in second two-dimensional storage district according to the pixel order;
Travel through all pixels, revise the rgb value of this pixel, concrete steps are following:
In second two-dimensional storage district; With this pixel is the center; Judge which interval each pixel falls in the said search rectangle frame; Said which interval that falls into is meant which interval is this gray values of pixel points belong to, when a pixel falls into certain interval simultaneously, for this interval number statistical value adds 1;
Select the maximum interval of number statistical value, calculate the average gray of all pixels that fall into this interval, as this gray values of pixel points;
According to contrary gray scale formula, calculate the rgb value of this point, and replace the original rgb value of this pixel in first two-dimensional storage district with this rgb value;
With the each point rgb value that writes down in first two-dimensional storage district, play up the target captions again.
CN201110120531.0A 2011-05-10 A kind of method realizing captions oil painting specially good effect Expired - Fee Related CN102739971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110120531.0A CN102739971B (en) 2011-05-10 A kind of method realizing captions oil painting specially good effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110120531.0A CN102739971B (en) 2011-05-10 A kind of method realizing captions oil painting specially good effect

Publications (2)

Publication Number Publication Date
CN102739971A true CN102739971A (en) 2012-10-17
CN102739971B CN102739971B (en) 2016-12-14

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886550B (en) * 2012-12-24 2017-12-01 合肥市腾讯信息科技有限公司 Sketch texture method of adjustment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
US20100020341A1 (en) * 2008-05-30 2010-01-28 Seiko Epson Corporation Image Processing Apparatus, Image Processing Method, Image Processing Program, and Image Printing Apparatus
CN101950405A (en) * 2010-08-10 2011-01-19 浙江大学 Video content-based watermarks adding method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
US20100020341A1 (en) * 2008-05-30 2010-01-28 Seiko Epson Corporation Image Processing Apparatus, Image Processing Method, Image Processing Program, and Image Printing Apparatus
CN101950405A (en) * 2010-08-10 2011-01-19 浙江大学 Video content-based watermarks adding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886550B (en) * 2012-12-24 2017-12-01 合肥市腾讯信息科技有限公司 Sketch texture method of adjustment and system

Similar Documents

Publication Publication Date Title
US20180084292A1 (en) Web-based live broadcast
CN105072353B (en) A kind of image decoding based on more GPU spells prosecutor method
TWI695295B (en) Image processing method, device and electronic equipment based on augmented reality
CN105023234B (en) Figure accelerated method based on embedded system storage optimization
CN101908216B (en) Method and device for realizing vector fonts
CN110782387B (en) Image processing method and device, image processor and electronic equipment
CN104219532A (en) Method for determining small object areas and method and device for frame interpolation among video frames
CN110248115A (en) Image processing method, device and storage medium
CN104159120A (en) Video image stabilization method, device and system
CN105578172B (en) Bore hole 3D image display methods based on Unity3D engines
CN103927722A (en) Implementation method and device for augmented reality
CN101572821A (en) Processing method and processing device for image zooming
CN102542528B (en) Image conversion processing method and system
US9602800B2 (en) Image processing method
CN107920252B (en) Panoramic video data processing method, device and system
CN102752515A (en) Implementation method of flame effect at programmable stage in graphics rendering
CN102739971A (en) Method for realizing special effect of oil painting of subtitles
CN102111636A (en) Method and system for converting three-dimensional (3D) signal into two-dimensional (2D) signal
CN102752549A (en) Method for achieving special effect based on mesh deformation
CN102739971B (en) A kind of method realizing captions oil painting specially good effect
CN104113704A (en) Game image processing method and device
CN102739976A (en) Method and system for realizing dynamic two-dimensional subtitle of shadow
CN104954892B (en) A kind of method and device showing video subject content
CN102739973A (en) Method for achieving Van Gogh oil painting special effect of subtitles
CN102724444A (en) Method and system for square object mode transformation of two-dimensional caption

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161214

Termination date: 20200510