CN102810200A - Image batch processing method - Google Patents

Image batch processing method Download PDF

Info

Publication number
CN102810200A
CN102810200A CN2012101979689A CN201210197968A CN102810200A CN 102810200 A CN102810200 A CN 102810200A CN 2012101979689 A CN2012101979689 A CN 2012101979689A CN 201210197968 A CN201210197968 A CN 201210197968A CN 102810200 A CN102810200 A CN 102810200A
Authority
CN
China
Prior art keywords
filter
parameters
image
batch
id
Prior art date
Application number
CN2012101979689A
Other languages
Chinese (zh)
Inventor
陈实富
杨斌
Original Assignee
成都平行视野科技有限公司
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 成都平行视野科技有限公司 filed Critical 成都平行视野科技有限公司
Priority to CN2012101979689A priority Critical patent/CN102810200A/en
Publication of CN102810200A publication Critical patent/CN102810200A/en

Links

Abstract

The invention discloses an image batch processing method, which comprises the following steps of: acquiring an image to be processed, defining identification (ID) of each filter and a plurality of corresponding parameters, and inputting the parameters into a data stream; defining operating types and operating parameters subjected to batch processing, wherein the operating parameters comprise the ID of filters and the filter parameters; selecting a filter to be applied, adjusting the parameters of the filter, and storing the ID of filter and the filter parameters in a batch processing operation file; and calling the batch processing operation file, acquiring the batch processing operating types in the data stream, acquiring the ID of filters and the filter parameters according to the operating types, and rendering the image to be processed by employing the filter. By the method, the operations of the filters can be effectively managed in a unified mode, the filter effect can be fed back to a canvas in real time, and the user experience is improved.

Description

一种图像批处理的方法 An image batch method

技术领域 FIELD

[0001] 本发明涉及计算机图像技术领域,尤其涉及图像批处理的方法。 [0001] The present invention relates to computer graphics technology, and in particular relates to an image batch method.

背景技术 Background technique

[0002] 图像批处理是一个十分有用的功能,借助该功能,用户进行简单的设置后,就可以软件自动化地进行处理每一张图片。 [0002] The image batch processing is a very useful feature With this feature, users simple setup, you can automate the software to process each picture.

[0003] 然而,目前大多数的图像处理软件的批处理功能都十分简单,主要都是转换格式,缩放,重命名,打logo等等,而无法对图像应用各种各样的滤镜。 [0003] However, most of the current batch image processing software functions are very simple, all major format conversion, scaling, renaming, playing logo, etc., and a variety of filters can not be applied to the image. 而滤镜是图像处理十分重要的功能,只有让图像批处理软件支持滤镜功能,才能够让该批处理软件实现更复杂,更有用的功能。 The filter is a very important function of image processing, image batch processing software supports only allow filter function to be able to make the batch software more complex, more useful functions. 比如某用户由于光线,或者相机设置等原因导致所拍摄的数百张照片全部偏暗,如果没有批处理调节亮度的功能,那么需要一张一张地调节光线,将需要耗费用户大量的时间和精力。 For example, a user because of the light, or camera settings as a result of hundreds of photos taken all dim, if not adjust the brightness of the batch function, you need to adjust the light one by one, the user will need to spend a lot of time and energy.

发明内容 SUMMARY

[0004] 本发明的目的是针对上述技术问题提出的一种图像批处理的方法,基于滤镜参数化的技术,提出了一个可扩展的批处理框架,基于该框架,本发明的图像批处理模块不但可以实现普通的转格式、缩放和重命名等功能,而且可以对图像应用各种各样的滤镜,在设置批处理的滤镜时,滤镜的参数都是可调的,而且调节的结果会立即显示在当前画布上。 [0004] The object of the present invention is a method for an image presented above technical problem batch, based on parametric filter techniques, we proposed an extended batch frame based on the frame image according to the present invention batch module can not only turn a common format, scaling and rename functions, but also a variety of filter applied to the image, while setting the batch filters, filter parameters are adjustable, and adjusting the results will be displayed immediately on the current canvas.

[0005] 根据本发明的一方面,提供了一种图像批处理的方法,包括步骤: [0005] According to an aspect of the present invention, there is provided a method of batch processing of an image, comprising the steps of:

A、获取待处理图像,定义每个滤镜的ID以及对应的若干参数,将所述若干参数输入到一数据流中; A, obtaining image to be processed, and a number of parameters corresponding to the ID defined for each filter, the plurality of input parameters to a data stream;

B、定义批处理操作的操作类型和操作参数,所述操作参数包括滤镜ID和滤镜参数; B, the operation type defined batch operations and operating parameters, said operating parameters comprising a filter and a filter ID parameter;

C、选择一个要应用的滤镜,调节所述滤镜的参数,将所述滤镜的ID和滤镜参数存入批处理操作文件中; C, selecting a filter to be applied, adjusting the filter parameters, the filter parameters and a filter ID file stored in a batch operation;

D、调用所述批处理操作文件,在所述数据流中获取所述批处理操作类型,并根据所述操作类型获取滤镜ID和滤镜参数,应用所述滤镜对所述待处理图像进行渲染。 D, invoking the file batch operation, the batch operation type acquired in the data stream, and acquires ID filters and filter parameters according to the operation type, the filter applied to the image to be processed rendering.

[0006] 优选地,所述步骤C进一步包括: [0006] Preferably, said step C further comprising:

选择一个要应用的滤镜时,所述待处理图片的缩略图会根据所述滤镜的应用效果实时更新; Selecting a filter to be applied, the thumbnail picture to be processed according to the application will be updated in real time the effect of the filter;

所述缩略图被OpenGl以纹理图的形式被贴到画布中以实时更新画布。 The thumbnails are OpenGl as texture map is attached to the canvas to canvas updated in real time.

[0007] 本发明的技术效果在于: [0007] The technical effect of the present invention:

可以实现普通的图像转格式、缩放和重命名等功能,而且可以对图像应用各种各样的滤镜,在设置批处理的滤镜时,滤镜的参数都是可调的,而且调节的结果会立即显示在当前画布上。 Can achieve a common image transfer format, scaling and rename function may be applied to the image and various filters, batch filters when provided, the filter parameters are adjustable and the adjusted the results will be displayed immediately on the current canvas.

[0008] 本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。 [0008] Other features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or learned by practice of the present invention. 本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。 The objectives and other advantages of the invention may be realized and attained by the written description, claims, and drawings structure particularly pointed out.

[0009] 下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。 [0009] The following drawings and embodiments, detailed description of the further aspect of the present invention.

[0010] [0010]

附图说明 BRIEF DESCRIPTION

[0011] 附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。 [0011] The accompanying drawings provide a further understanding of the present invention, and constitute part of this specification, the embodiments of the invention, serve to explain the invention, not to limit the present invention. 在附图中: In the drawings:

图I是本发明一种图像批处理的方法流程图。 FIG. I is a batch of image flowchart of a method of the present invention.

[0012] [0012]

具体实施方式 Detailed ways

[0013] 以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。 [0013] Hereinafter, the preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, it should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0014] 如图I所示,为本发明图像批处理的方法的一种具体实施方式,具体包括以下步骤: [0014] As shown in FIG I, a specific embodiment of the method of the present invention, batch image, includes the following steps:

步骤101、获取待处理图像,定义每个滤镜的ID以及对应的若干参数,将所述若干参数输入到一数据流中; Step 101, obtaining image to be processed, and a number of parameters corresponding to the ID defined for each filter, the plurality of input parameters to a data stream;

每一个滤镜都继承自公有的基类,该基类定义了两个虚的接口:参数序列化和参数反序列化。 Each filter Chengzi Gong Following are some of the base class, the base class defines two virtual interfaces: parameters and parameter sequence deserialization. 参数序列化把本滤镜的参数输入到一个数据流中,参数反向序列化则是把当前的数据流提取参数提取到本滤镜中。 Parameter sequence of the input parameters of the filter into a data stream, the parameter is the reverse sequence of the current data extracting parameters extracted in this filter. 每一个滤镜都需要实现这两个接口。 Each filter needs to implement both interfaces. 数据流的存储目标可以是内存或硬盘。 Storing target data stream may be a memory or a hard disk. 每一个滤镜都对应有一个唯一的guid,通过guid就可以获得该滤镜在软件运行实例的指针。 Each filter corresponds to a unique guid, can be obtained by this filter guid running instance of the software pointer.

[0015] 步骤102、定义批处理操作的操作类型和操作参数,所述操作参数包括滤镜ID和滤镜参数; [0015] Step 102, the operation type defined batch operations and operating parameters, said operating parameters comprising a filter and a filter ID parameter;

批处理操作主要包含两个信息,即操作类型和操作的参数。 Batch operation comprises two main information, i.e., the operating parameters and the type of operation. 操作的类型是由一个整数来定义。 Type of operation is defined by an integer. 在该批处理操作是滤镜操作的时候,操作的参数则是一个缓冲区,该缓冲区就是存储了序列化了的滤镜参数,以及该滤镜的guid.而其他类型的批处理参数则分别独立处理。 In this filter operation is a batch operation, when the operation parameter is a buffer, which is stored in the sequence of the parameters of the filter, and the filter guid. Other types of batch parameters and then independently processing.

[0016] 步骤103、选择一个要应用的滤镜,调节所述滤镜的参数,将所述滤镜的ID和滤镜参数存入批处理操作文件中; [0016] Step 103, selecting a filter to be applied, adjusting the filter parameters, the filter parameters and a filter ID file stored in a batch operation;

用户选择一个滤镜后,滤镜参数窗口会显示出来。 When the user selects a filter, the filter parameters of the window will be displayed. 用户在调节完滤镜参数,并确定后,就会在当前的批处理操作管理器里面插入一个滤镜操作。 After completion of the user adjust the filter parameters and the determination, the operation will insert a filter in the current batch operations manager inside. 该滤镜的guid会被处先存储,然后该滤镜的序列化接口会被调用,将其参数序列化到特定缓冲区中。 The filter will be liable guid previously stored, then the filter is called the interface of the sequence, the sequence of its argument to a particular buffer.

[0017] 步骤104、调用所述批处理操作文件,在所述数据流中获取所述批处理操作类型,并根据所述操作类型获取滤镜ID和滤镜参数,应用所述滤镜对所述待处理图像进行渲染。 [0017] Step 104, the calling operation batch file, the batch operation type acquired in the data stream, and acquires ID filters and filter parameters according to the type of operation, the filters of their application rendering said image to be processed.

[0018] 在载入一个批处理操作的时候,首先在数据流中获取该批处理操作的类型。 [0018], the batch type of operation is first acquired in the data stream is loaded in a batch operation time. 如果发现该批处理操作是滤镜操作,则继续在数据流中获取该滤镜的guid,通过该guid,经过滤镜管理器获取该滤镜的指针,并通过该指针调用该滤镜的反序列参数以将参数赋予该滤镜。 If batch operation is found that the filter operation, the filter of the guid continue receiving the data stream, through the filter manager obtains a pointer to the filter through the guid, and call the inverse filter by the pointer sequence parameter impart to the filter parameters. 最后激活该滤镜,并启用滤镜的应用过程。 Finally activate the filter, and the filter enable application process. [0019] 作为本发明的一种优选实施方式,在添加批处理操作之前,用户会被要求选择一张图片来作参考。 [0019] As a preferred embodiment of the present invention, prior to adding the batch operation, the user will be asked to choose a picture for reference. 每增加一个滤镜,该参考图片就会被更新。 Each additional filter, the reference picture is updated. 在用户打开一个滤镜,并且调节滤镜的参数的时候,一个调节后的图像缩略图被实时地更新,这个缩略图又会被OpenGL以纹理的方式贴到画布中,这样便实现了画布的更新。 The user opens a filter and adjusting the filter parameters, when an image is updated in real time adjustment thumbnail, a thumbnail will be OpenGL texture in a manner attached to the canvas, so that they achieve a canvas update. 由于本发明对应的软件是基于GPU中速的,所以每个滤镜都具有很快的速度,使得画布的更新是实时的。 Since the present invention is based on the software corresponding to the speed of the GPU, each filter having a very high speed, so that the canvas is updated in real time. 所以批处理操作的添加和编辑是可视化的。 So add and edit batch operations are visualized.

[0020] 本发明利用已经定义好的所有滤镜,对所有滤镜的批处理操作实现了统一的管理,用户可以自由选择滤镜组合,而效果则可视化地实时反馈到画布上。 [0020] The present invention has been defined using all filters, filters for all batch operations to achieve a unified management, the user can freely select a combination of filter, but the effect is visually real-time feedback to the canvas.

[0021] 本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:R0M、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0021] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of medium may store program codes R0M, RAM, magnetic disk, or optical disk.

[0022] 最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明, 尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。 [0022] Finally, it should be noted that: the above embodiments are only preferred embodiments of the present invention, but the present invention is not intended to limit the present invention. Although the detailed description of the embodiments, those skilled in the art that aspect, each of which can still be described embodiments of the foregoing embodiment may be modified, or some technical features equivalents. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

Claims (2)

1. 一种图像批处理的方法,其特征在于,包括以下步骤: A、获取待处理图像,定义每个滤镜的ID以及对应的若干参数,将所述若干参数输入到一数据流中; B、定义批处理操作的操作类型和操作参数,所述操作参数包括滤镜ID和滤镜参数; C、选择一个要应用的滤镜,调节所述滤镜的参数,将所述滤镜的ID和滤镜参数存入批处理操作文件中; D、调用所述批处理操作文件,在所述数据流中获取所述批处理操作类型,并根据所述操作类型获取滤镜ID和滤镜参数,应用所述滤镜对所述待处理图像进行渲染。 An image of the batch method, characterized by comprising the steps of: A, obtaining an image to be processed, and a number of parameters corresponding to the ID defined for each filter, the plurality of input parameters to a data stream; B, the operation type defined batch operations and operating parameters, said operating parameters comprising a filter and a filter ID parameter; C, to select a filter to be applied, adjusting the parameters of the filter, the filter filter parameters ID and stored in the batch file operations; D, invoking the operation batch file, the batch operation type acquired in the data stream, and acquires ID filters, and filters in accordance with the type of operation parameters, applying the filter to render the image to be processed.
2.根据权利要求I所述的图像批处理的方法,其特征在于,所述步骤C进一步包括: 选择一个要应用的滤镜时,所述待处理图片的缩略图会根据所述滤镜的应用效果实时更新; 所述缩略图被OpenGl以纹理图的形式被贴到画布中以实时更新画布。 The batch method of an image according to claim I, wherein said step C further comprises: selecting a filter to be applied, the thumbnail picture to be processed based on the filter application effect updated in real time; OpenGl the thumbnails are in the form of paste texture map is updated in real time to the canvas canvas.
CN2012101979689A 2012-06-15 2012-06-15 Image batch processing method CN102810200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101979689A CN102810200A (en) 2012-06-15 2012-06-15 Image batch processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101979689A CN102810200A (en) 2012-06-15 2012-06-15 Image batch processing method

Publications (1)

Publication Number Publication Date
CN102810200A true CN102810200A (en) 2012-12-05

Family

ID=47233903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101979689A CN102810200A (en) 2012-06-15 2012-06-15 Image batch processing method

Country Status (1)

Country Link
CN (1) CN102810200A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346506A (en) * 2013-07-31 2015-02-11 Ge医疗系统环球技术有限公司 Processing and outputting method and device for medical images
CN105335940A (en) * 2014-08-15 2016-02-17 北京金山网络科技有限公司 Method and apparatus for realizing image filter effect and server
CN107608506A (en) * 2017-09-01 2018-01-19 北京小米移动软件有限公司 Image processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258058A (en) * 1998-12-14 2000-06-28 佳能株式会社 Image processing method and device, image processing system,and memory medium
CN1519713A (en) * 2003-01-23 2004-08-11 光宝科技股份有限公司 Method for previewing color treatment of frame of input image
CN1525401A (en) * 2003-02-28 2004-09-01 伊斯曼柯达公司 Method and system for enhancing portrait images that are processed in a batch mode
US20070182747A1 (en) * 2004-04-16 2007-08-09 John Harper High-level program interface for graphics operations
CN101593105A (en) * 2008-05-26 2009-12-02 新奥特(北京)视频技术有限公司 Command set use method in video production software
CN101650822A (en) * 2009-09-21 2010-02-17 北京壁虎科技有限公司 Method and system for generating mutual information
CN101909104A (en) * 2010-08-10 2010-12-08 华为终端有限公司 Information processing method and user equipment
CN102147737A (en) * 2010-02-09 2011-08-10 深圳市金蝶中间件有限公司 Method for supporting multi-operating system by system service and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258058A (en) * 1998-12-14 2000-06-28 佳能株式会社 Image processing method and device, image processing system,and memory medium
CN1519713A (en) * 2003-01-23 2004-08-11 光宝科技股份有限公司 Method for previewing color treatment of frame of input image
CN1525401A (en) * 2003-02-28 2004-09-01 伊斯曼柯达公司 Method and system for enhancing portrait images that are processed in a batch mode
US20070182747A1 (en) * 2004-04-16 2007-08-09 John Harper High-level program interface for graphics operations
CN101593105A (en) * 2008-05-26 2009-12-02 新奥特(北京)视频技术有限公司 Command set use method in video production software
CN101650822A (en) * 2009-09-21 2010-02-17 北京壁虎科技有限公司 Method and system for generating mutual information
CN102147737A (en) * 2010-02-09 2011-08-10 深圳市金蝶中间件有限公司 Method for supporting multi-operating system by system service and device
CN101909104A (en) * 2010-08-10 2010-12-08 华为终端有限公司 Information processing method and user equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346506A (en) * 2013-07-31 2015-02-11 Ge医疗系统环球技术有限公司 Processing and outputting method and device for medical images
CN104346506B (en) * 2013-07-31 2018-11-30 Ge医疗系统环球技术有限公司 The method and device that a kind of pair of medical image image is handled and exported
CN105335940A (en) * 2014-08-15 2016-02-17 北京金山网络科技有限公司 Method and apparatus for realizing image filter effect and server
CN107608506A (en) * 2017-09-01 2018-01-19 北京小米移动软件有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
US8990728B2 (en) Dynamic user interface for previewing live content
US8004529B2 (en) Processing an animation file to provide an animated icon
US8954386B2 (en) Locally editing a remotely stored image
US9445016B2 (en) Features such as titles, transitions, and/or effects which vary according to positions
US8214766B1 (en) Method and system for preview control for image adjustment
US20110167336A1 (en) Gesture-based web site design
US9245350B1 (en) Image-based color palette generation
Chang et al. Palette-based photo recoloring.
US9401032B1 (en) Image-based color palette generation
WO2011163422A2 (en) System and method for distributed media personalization
US8230318B2 (en) Selective image editing in a browser
US20090172559A1 (en) Creating and editing dynamic graphics via a web interface
US8380005B1 (en) System and method for image composition using non-destructive editing model and fast gradient solver
US9672646B2 (en) System and method for image editing using visual rewind operation
US9311889B1 (en) Image-based color palette generation
CN102112954A (en) Creation and navigation of infinite canvas presentation
CN101595719B (en) Apparatus and methods for boosting dynamic range in digital images
JPH10500512A (en) Graphical user interface in the form and operation customizing and systems
CN102209951A (en) Image processing device, information processing device, image processing method, and information processing method
US8723887B2 (en) Methods and systems for per pixel alpha-blending of a parent window and a portion of a background image
CN102622163A (en) Icon generation method
US7631252B2 (en) Distributed processing when editing an image in a browser
US8032840B2 (en) Apparatus, method and computer program product for generating a thumbnail representation of a video sequence
US9547427B2 (en) User interface with color themes based on input image data
US7596764B2 (en) Multidimensional image data processing

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C12 Rejection of a patent application after its publication