Method, apparatus and storage medium for image processing with cooperation of multiple persons

文档序号:987760 发布日期:2020-11-06 浏览:12次 中文

阅读说明:本技术 用于多人协作进行图像处理的方法、装置以及存储介质 (Method, apparatus and storage medium for image processing with cooperation of multiple persons ) 是由 任洋辉 于 2020-09-29 设计创作,主要内容包括:本申请公开了一种用于多人协作进行图像处理的方法、装置以及存储介质,其中该方法包括:响应于第一用户输入的对图像的的多个图层的排列顺序进行调整的调整操作,确定引起多个图层的排列顺序发生变化的第一目标图层;根据预设的图层索引表,确定位于第一目标图层上方的第一图层的第一索引值和位于第一目标图层下方的第二图层的第二索引值,其中图层索引表用于记录多个图层的使用小数表示的存在一一映射关系的多个索引值,并且多个图层的排列顺序与多个索引值的大小排列顺序一致;根据第一索引值和第二索引值,确定第一目标图层的第一目标索引值;以及将第一目标图层和第一目标索引值发送至预先存储有图层索引表的共同协作的第二用户的终端设备。(The application discloses a method, a device and a storage medium for image processing by cooperation of multiple persons, wherein the method comprises the following steps: determining a first target layer causing the arrangement sequence of the layers to change in response to a first user-input adjustment operation for adjusting the arrangement sequence of the layers of the image; determining a first index value of a first layer positioned above a first target layer and a second index value of a second layer positioned below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values of the plurality of layers which are represented by decimal numbers and have a one-to-one mapping relation, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values; determining a first target index value of the first target layer according to the first index value and the second index value; and sending the first target layer and the first target index value to the terminal equipment of the co-cooperative second user, which stores the layer index table in advance.)

1. A method for collaborative image processing by multiple persons, wherein the image is composed of a plurality of image layers, comprising:

determining a first target layer causing the arrangement sequence of the plurality of layers to change in response to an adjustment operation of a first user input for adjusting the arrangement sequence of the plurality of layers;

determining a first index value of a first layer located above the first target layer and a second index value of a second layer located below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values which have a one-to-one mapping relation with the plurality of layers, the index values are represented by fractions, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values;

determining a first target index value of the first target layer according to the first index value and the second index value; and

and sending the first target image layer and the first target index value to terminal equipment of a second user, wherein the second user and the first user cooperate to process the image together, and the image layer index table is stored in the terminal equipment of the second user in advance.

2. The method according to claim 1, wherein the operation of determining a first target layer causing a change in the arrangement order of the plurality of layers in response to a first user-input adjustment operation to adjust the arrangement order of the plurality of layers comprises: and in response to an adding operation of adding a first specified layer to two adjacent layers in the plurality of layers, which is input by the first user, determining the first specified layer as the first target layer.

3. The method according to claim 1, wherein the operation of determining a first target layer causing a change in the arrangement order of the plurality of layers in response to a first user-input adjustment operation to adjust the arrangement order of the plurality of layers comprises: and in response to a moving operation of moving a second designated layer of the plurality of layers, which is input by the first user, determining that the second designated layer is the first target layer.

4. The method of claim 1, wherein the operation of determining the first target index value for the first target layer based on the first index value and the second index value comprises:

determining a difference between the first index value and the second index value; and

and determining a first target index value of the first target layer according to the second index value and the difference value.

5. The method of claim 1, further comprising:

receiving a second target layer causing a change in the arrangement order of the plurality of layers and a second target index value of the second target layer from the terminal device of the second user; and

and adjusting the arrangement sequence of the layers according to the second target layer and the second target index value.

6. The method according to claim 5, wherein the operation of adjusting the arrangement order of the layers according to the second target layer and the second target index value comprises:

updating the preset layer index table according to the second target layer and the second target index value; and

and re-determining the arrangement sequence of the layers according to the updated preset layer index table.

7. The method of claim 1, further comprising: representing the plurality of index values using a string instead of the fraction.

8. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 7 is performed by a processor when the program is run.

9. An apparatus for image processing in cooperation with a plurality of persons, wherein the image is composed of a plurality of image layers, comprising:

a first determining module, configured to determine, in response to an adjustment operation, which is input by a first user, to adjust an arrangement order of the plurality of layers, a first target layer that causes a change in the arrangement order of the plurality of layers;

a second determining module, configured to determine, according to a preset layer index table, a first index value of a first layer located above the first target layer and a second index value of a second layer located below the first target layer, where the layer index table is used to record multiple index values that have a one-to-one mapping relationship with the multiple layers, the index values are represented by fractions, and an arrangement order of the multiple layers is consistent with a size arrangement order of the multiple index values;

a third determining module, configured to determine a first target index value of the first target layer according to the first index value and the second index value; and

a sending module, configured to send the first target layer and the first target index value to a terminal device of a second user, where the second user cooperates with the first user to process the image, and the layer index table is stored in advance in the terminal device of the second user.

10. An apparatus for image processing in cooperation with a plurality of persons, wherein the image is composed of a plurality of image layers, comprising:

a processor; and

a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:

determining a first target layer causing the arrangement sequence of the plurality of layers to change in response to an adjustment operation of a first user input for adjusting the arrangement sequence of the plurality of layers;

determining a first index value of a first layer located above the first target layer and a second index value of a second layer located below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values which have a one-to-one mapping relation with the plurality of layers, the index values are represented by fractions, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values;

determining a first target index value of the first target layer according to the first index value and the second index value; and

and sending the first target image layer and the first target index value to terminal equipment of a second user, wherein the second user and the first user cooperate to process the image together, and the image layer index table is stored in the terminal equipment of the second user in advance.

Technical Field

The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a storage medium for multi-person collaborative image processing.

Background

When multiple persons cooperate to process images through a network, after each person processes the images, the processed image data can be transmitted to terminal equipment of other persons in real time to be updated, and therefore the image processing by cooperation of the multiple persons is achieved. After the worker performs layer processing on the image (for example, inserting a layer or adjusting the position of the layer), the data is sent to terminal equipment of other workers in real time so as to update the image after layer processing.

At present, an integer or a position in an array is used to represent a layer sequence, and a large amount of dynamic adjustment is needed when the layer sequence is adjusted, so as to achieve the purpose of adjusting an index. Referring to fig. 4, in a case where a new layer x is inserted into a layer a and a layer b, an index of the layer x needs to be set to 2, and then index values of all layers after dynamic adjustment are performed, for example, the index value of the layer b is adjusted to 3, the index value of the layer c is adjusted to 4, and so on until adjustment of the index values of all layers is completed. Assuming that an image is composed of 100 layers and each layer has 16 bytes of id, at least 100 × 16 bytes are required to describe changes when the layers of the image are dynamically adjusted. In particular, if the number of layers of the image is extremely large, each layer operation of the staff generates a large amount of data, which may cause the terminal devices of other staff to be jammed during the transmission process.

In view of the technical problem that in the conventional multi-user cooperation image processing process in the prior art, a large amount of data for describing a change of an image layer is generated when a worker dynamically adjusts the image layer of an image, so that terminal devices of other workers are jammed during data transmission, an effective solution is not proposed at present.

Disclosure of Invention

The embodiment of the disclosure provides a method, a device and a storage medium for image processing by multi-person cooperation, so as to at least solve the technical problem that in the conventional multi-person cooperation image processing process in the prior art, a worker can generate large-capacity data for describing the change of an image layer when dynamically adjusting the image layer of an image, so that terminal devices of other workers can be jammed in the data transmission process.

According to an aspect of the embodiments of the present disclosure, there is provided a method for image processing by cooperation of a plurality of persons, wherein an image is composed of a plurality of image layers, including: determining a first target layer causing the arrangement sequence of the plurality of layers to change in response to an adjustment operation of adjusting the arrangement sequence of the plurality of layers, which is input by a first user; determining a first index value of a first layer positioned above a first target layer and a second index value of a second layer positioned below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values which have one-to-one mapping relation with the plurality of layers, the index values are represented by decimal numbers, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values; determining a first target index value of the first target layer according to the first index value and the second index value; and sending the first target image layer and the first target index value to terminal equipment of a second user, wherein the second user and the first user cooperatively process images together, and the terminal equipment of the second user is stored with an image layer index table in advance.

According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method of any one of the above is performed by a processor when the program is executed.

According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for image processing by cooperation of a plurality of persons, wherein an image is composed of a plurality of image layers, the apparatus including: the first determining module is used for determining a first target layer causing the change of the arrangement sequence of the layers in response to an adjustment operation of adjusting the arrangement sequence of the layers, which is input by a first user; the second determining module is used for determining a first index value of a first layer positioned above a first target layer and a second index value of a second layer positioned below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values which have one-to-one mapping relation with the plurality of layers, the index values are represented by decimal numbers, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values; a third determining module, configured to determine a first target index value of the first target layer according to the first index value and the second index value; and the sending module is used for sending the first target image layer and the first target index value to terminal equipment of a second user, wherein the second user and the first user cooperatively process images together, and the terminal equipment of the second user is prestored with an image layer index table.

According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for image processing by cooperation of a plurality of persons, wherein an image is composed of a plurality of image layers, the apparatus including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: determining a first target layer causing the arrangement sequence of the plurality of layers to change in response to an adjustment operation of adjusting the arrangement sequence of the plurality of layers, which is input by a first user; determining a first index value of a first layer positioned above a first target layer and a second index value of a second layer positioned below the first target layer according to a preset layer index table, wherein the layer index table is used for recording a plurality of index values which have one-to-one mapping relation with the plurality of layers, the index values are represented by decimal numbers, and the arrangement sequence of the plurality of layers is consistent with the size arrangement sequence of the plurality of index values; determining a first target index value of the first target layer according to the first index value and the second index value; and sending the first target image layer and the first target index value to terminal equipment of a second user, wherein the second user and the first user cooperatively process images together, and the terminal equipment of the second user is stored with an image layer index table in advance.

In the embodiment of the present disclosure, when a certain user performing image processing in cooperation needs to adjust the order of the layers of the image, the terminal device may determine, according to the adjustment operation, a target layer that causes a change in the order of the layers by inputting a corresponding adjustment operation on its terminal device. The terminal equipment is pre-stored with a plurality of index values which are used for recording the one-to-one mapping relation of the plurality of layers and are represented by decimal numbers, and the layer index table with the arrangement sequence of the plurality of layers consistent with the arrangement sequence of the plurality of index values, so that the terminal equipment does not need to adjust the index values of all layers which change in sequence according to smooth adjustment of the sequence, but determines the index value of a target layer which causes the change of the arrangement sequence of the plurality of layers according to a preset layer index table, and does not need to dynamically adjust the index value of the original layer, so that the data change is not increased along with the increase of the data volume. Moreover, since the layer index table is pre-stored in a plurality of users performing co-operation on the image, the terminal device only needs to send the target layer causing the change of the arrangement order of the plurality of layers and the index value corresponding to the target layer to the terminal devices of other users co-operating with the terminal device, and the other users co-operating with the terminal device can update the layer index table according to the received target layer and the index value corresponding to the target layer, and perform the sorting operation on each layer again according to the size of the index value respectively corresponding to each layer stored in the layer index table, so as to achieve the purpose of adjusting the sorting order of each layer of the image. Therefore, in the embodiment, the adjusted layer structure can still be notified to other users who cooperate with each other under the condition of transmitting the data with smaller capacity, so that the situation that the terminal devices of other workers are jammed is avoided. And then the technical problem that in the traditional multi-user cooperation image processing process in the prior art, a worker can generate large-capacity data for describing the change of the image layer when dynamically adjusting the image layer of the image, so that terminal equipment of other workers can be blocked in the data transmission process is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:

fig. 1 is a hardware block diagram of a computing device for implementing the method according to embodiment 1 of the present disclosure;

fig. 2 is a schematic diagram of a system for multi-person collaborative image processing according to embodiment 1 of the present disclosure;

fig. 3 is a flowchart illustrating a method for image processing by cooperation of a plurality of persons according to a first aspect of embodiment 1 of the present disclosure;

fig. 4 is a schematic diagram of an apparatus for multi-person collaborative image processing according to embodiment 2 of the present disclosure; and

fig. 5 is a schematic diagram of an apparatus for image processing by cooperation of multiple persons according to embodiment 3 of the present disclosure.

Detailed Description

In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.

It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种医学CT图像存储与检索方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!