CN108171653A - A kind of method for accelerating more filter combined treatment digital pictures - Google Patents
A kind of method for accelerating more filter combined treatment digital pictures Download PDFInfo
- Publication number
- CN108171653A CN108171653A CN201711494679.4A CN201711494679A CN108171653A CN 108171653 A CN108171653 A CN 108171653A CN 201711494679 A CN201711494679 A CN 201711494679A CN 108171653 A CN108171653 A CN 108171653A
- Authority
- CN
- China
- Prior art keywords
- filter
- last
- design sketch
- container
- interim
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000008569 process Effects 0.000 claims description 4
- 230000008859 change Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The present invention provides a kind of methods for accelerating more filter combined treatment digital pictures, it is identified by carrying out uniquely number (filter ID) to the filter in each filter group, accelerate the processing to more filters by way of interim design sketch so that processing intent more quickly and efficiently can be reached after the new filter of change wherein some filter params or addition.
Description
Technical field
The present invention relates to a kind of methods for accelerating more filter combined treatment digital pictures.
Background technology
The combination for carrying out multiple filters is usually needed to handle image during Digital Image Processing to have reached
Expected effect.General execution flow is to carry out being filtered to the application of pending image from top to down according to the quantity of filter and sequence
Mirror finally obtains effect.This method due to reloading and handling primary each filter every time, so apply every time when
Between be all each filter processing time and.It is unnecessary to be consumed when changing filter params value and carrying out image procossing again
Time, cause processing decreasing efficiency.
At present in various Digital Image Processing platforms or application software, addition filter quantity is often all more, in order to
Achieve the effect that final purpose, the filter quantity of an original digital picture application may be 10 or more than, and root
Different effects is obtained according to the parameter difference of each filter.As user allowed to manually adjust wherein some parameter when software
When, it is equivalent to re-execute all filters and is handled.This method that sequence carries out filter processing from top to down every time
The serious efficiency for affecting processing in the case where more filters combination particularly each filter processing time is longer, in particular
In certain softwares or application scenarios for needing to show in real time, how so that the combination of more filters to the processing of digital picture more
Quickly, efficiently, become the basis that can be realized.
Invention content
The present invention proposes a kind of method for accelerating more filter combined treatment digital pictures.
In order to solve the above technical problems, the technical solution adopted in the present invention is:
A kind of method for accelerating more filter combined treatment digital pictures, includes the following steps:
1) it is passed to original image and needs multiple filters to be applied;
2) according to the incoming sequence of filter, a program containers are built for loading incoming multiple filters, wherein needing
The filter that parameter adjustment is carried out under single filter sorts last;
3) other filters in process container in addition to the last one filter in sequence, the interim effect that preserves that treated
Figure;
4) the last one filter in interim design sketch application container, obtains final design sketch;
5) when the parameter for changing the last one filter in container, directly by new filter, that is, after changing parameter
The last one filter replaces with a last filter of container;
6) directly final result is obtained with the last one filter in the interim design sketch application container generated in step 3);
7) when adding a new filter, new filter is added to last position of container, directly using in step 3)
Most latter two filter in interim design sketch application container, and update interim design sketch and pass through for the interim design sketch in step 3)
Previous position filter reciprocal treated image.
The present invention is identified by carrying out uniquely number (filter ID) to the filter in each filter group, by interim
The mode of design sketch accelerates the processing to more filters so that the energy after the new filter of change wherein some filter params or addition
Enough reach processing intent more quickly and efficiently.
Description of the drawings
The attached drawing for forming the part of the application is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is flow diagram of the embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Embodiment
With reference to shown in Fig. 1, a kind of method and step for accelerating more filter combined treatment digital pictures is as follows:
1) it is passed to original image and needs multiple filters to be applied.
2) program containers are built for loading incoming multiple filters (according to the incoming sequence of filter).Wherein need
The filter that parameter adjustment is carried out under single filter sorts last.
3) other filters in process container in addition to the last one filter in sequence, the interim effect that preserves that treated
Figure.
4) the last one filter in interim design sketch application container, obtains final design sketch.
5) when the parameter for changing the last one filter in container, directly by new filter (after change parameter most
The latter filter) replace with the last filter (mainly judging whether in a reservoir by the ID of filter) of container.
6) directly final result is obtained with the last one filter in the interim design sketch application container generated in step 3).
7) (judged the filter with the presence or absence of in container according to the ID of filter) when adding a new filter, by new filter
It is added to last position of container, directly using most latter two filter, and more in the interim design sketch application container in step 3)
New interim design sketch is the interim design sketch in step 3) by previous position filter reciprocal treated image.
The present invention can effectively promote filter more by the optimization to the process flow of digital picture under being combined to more filters
Execution efficiency under mirror.For sequence performs filter processing, if user chooses multiple ginsengs in wherein some filter
Number carry out filter application processing, then its application total time be:
(wherein j is filter serial number, and t performs the time for corresponding single filter)
It is the same that handle the then total time of first treated and the above-mentioned time of filter are carried out using the present invention, is subsequently being changed
Processing time is when the last one filter params:
T=t, (wherein t is the processing time of the last one filter)
Processing time is when increasing a filter:
T=t+t'(wherein t' are the processing time of newly-increased filter)
The upper mode than performing in sequence more has advantage between when being executed, can be significantly in multiple complicated filters
Change filter params therein in combination or play the role of when increasing filter processing time saving, efficient.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.
Claims (2)
- A kind of 1. method for accelerating more filter combined treatment digital pictures, it is characterised in that include the following steps:1) it is passed to original image and needs multiple filters to be applied;2) according to the incoming sequence of filter, a program containers are built for loading incoming multiple filters, wherein needing in list The filter that parameter adjustment is carried out under a filter sorts last;3) other filters in process container in addition to the last one filter in sequence, the interim design sketch that preserves that treated;4) the last one filter in interim design sketch application container, obtains final design sketch;5) it when the parameter for changing the last one filter in container, directly by new filter, that is, changes last after parameter One filter replaces with a last filter of container;6) directly final result is obtained with the last one filter in the interim design sketch application container generated in step 3);7) when adding a new filter, new filter is added to last position of container, directly using interim in step 3) Most latter two filter in design sketch application container, and update interim design sketch and pass through inverse for the interim design sketch in step 3) Previous position filter treated image.
- 2. a kind of method for accelerating more filter combined treatment digital pictures according to claim 1, it is characterised in that:In the step 5) and/or step 7), judge the filter with the presence or absence of in container according to the ID of filter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711494679.4A CN108171653A (en) | 2017-12-31 | 2017-12-31 | A kind of method for accelerating more filter combined treatment digital pictures |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711494679.4A CN108171653A (en) | 2017-12-31 | 2017-12-31 | A kind of method for accelerating more filter combined treatment digital pictures |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108171653A true CN108171653A (en) | 2018-06-15 |
Family
ID=62516492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711494679.4A Pending CN108171653A (en) | 2017-12-31 | 2017-12-31 | A kind of method for accelerating more filter combined treatment digital pictures |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108171653A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108986017A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Image special effect processing method, device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160048943A1 (en) * | 2014-04-25 | 2016-02-18 | Sony Corporation | Processing digital photographs in response to external applications |
CN105357451A (en) * | 2015-12-04 | 2016-02-24 | Tcl集团股份有限公司 | Image processing method and apparatus based on filter special efficacies |
CN106651761A (en) * | 2016-12-27 | 2017-05-10 | 维沃移动通信有限公司 | Method for adding filters to pictures, and mobile terminal |
CN106997610A (en) * | 2016-01-26 | 2017-08-01 | 阿里巴巴集团控股有限公司 | A kind of image rendering method, device and electronic equipment |
-
2017
- 2017-12-31 CN CN201711494679.4A patent/CN108171653A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160048943A1 (en) * | 2014-04-25 | 2016-02-18 | Sony Corporation | Processing digital photographs in response to external applications |
CN105357451A (en) * | 2015-12-04 | 2016-02-24 | Tcl集团股份有限公司 | Image processing method and apparatus based on filter special efficacies |
CN106997610A (en) * | 2016-01-26 | 2017-08-01 | 阿里巴巴集团控股有限公司 | A kind of image rendering method, device and electronic equipment |
CN106651761A (en) * | 2016-12-27 | 2017-05-10 | 维沃移动通信有限公司 | Method for adding filters to pictures, and mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108986017A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Image special effect processing method, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107392842B (en) | Image stylization processing method and device, computing equipment and computer storage medium | |
CN111488149B (en) | Canvas element-based table rendering method and device and computer equipment | |
CN108921890A (en) | The screwed lock method, apparatus and computer readable storage medium | |
CN107516290B (en) | Image conversion network acquisition method and device, computing equipment and storage medium | |
CN105511975B (en) | A kind of abnormality eliminating method and device | |
CN107391243A (en) | Thread task processing equipment, device and method | |
CN105468617B (en) | Adjust the method and device of web page contents color | |
CN106339983A (en) | Blurring animation realization method through Gaussian blurring and blurring animation realization device thereof | |
CN106610837A (en) | Application development method and development platform | |
CN108335260A (en) | A kind of scene of game image processing method, device, storage medium and electronic device | |
CN112837251B (en) | Image processing method and device | |
CN108171653A (en) | A kind of method for accelerating more filter combined treatment digital pictures | |
CN103309695B (en) | A kind of loading figure calibration method and terminal | |
CN104657946A (en) | Image filtering processing method and device for quickly realizing multiple effects | |
CN104484204A (en) | Method and device for task running | |
CN1967500A (en) | Resource using method in automatic testing process | |
CN107392316B (en) | Network training method and device, computing equipment and computer storage medium | |
CN106648335A (en) | Secondary-linkage menu building method and apparatus | |
CN103235965A (en) | QR (quick response) code image processing method and device | |
CN106384366A (en) | Image calibration method and device | |
CN107222618A (en) | Terminal screenshotss method and device | |
CN106874059B (en) | A kind of method of image processing function in the hardware-accelerated library OpenCV | |
CN105573726B (en) | A kind of rules process method and equipment | |
CN106155952A (en) | A kind of I2C multi-computer communication method with priority arbitration mechanism | |
CN105204883B (en) | A kind of plug-in unit loading processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |
|
RJ01 | Rejection of invention patent application after publication |