CN117649460A - Mask operation method and equipment, storage medium and terminal thereof - Google Patents

Mask operation method and equipment, storage medium and terminal thereof Download PDF

Info

Publication number
CN117649460A
CN117649460A CN202311708350.9A CN202311708350A CN117649460A CN 117649460 A CN117649460 A CN 117649460A CN 202311708350 A CN202311708350 A CN 202311708350A CN 117649460 A CN117649460 A CN 117649460A
Authority
CN
China
Prior art keywords
mask
mask layer
layer
operation instruction
inverting
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
Application number
CN202311708350.9A
Other languages
Chinese (zh)
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.)
Beijing Also Technology Co ltd
Original Assignee
Beijing Also Technology Co 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 Beijing Also Technology Co ltd filed Critical Beijing Also Technology Co ltd
Priority to CN202311708350.9A priority Critical patent/CN117649460A/en
Publication of CN117649460A publication Critical patent/CN117649460A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a mask operation method and equipment, a storage medium and a terminal thereof, wherein the mask operation method at least comprises the following steps: generating a mask layer based on a preset mode; processing the mask layer according to the obtained mask operation instruction; wherein the mask operation instructions include at least one of editing a mask, applying a mask, reversing a mask, enabling or disabling a mask, and deleting a mask; the effect image obtained based on the mask layer has a plurality of selectable states.

Description

Mask operation method and equipment, storage medium and terminal thereof
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a mask operation method and apparatus, a storage medium, and a terminal.
Background
With the rapid development of computer technology, terminal applications for processing pictures, such as a camera, P-picture software, social APP, etc., can be installed in terminal devices such as smart phones, palm computers, tablet computers, etc., and users can add special effects, decorate and beautify, make-up, change figures, etc. to original pictures (such as figures, landscapes or buildings, etc.) or videos based on the terminal applications.
Among various image processing modes, masks are widely used in image processing to selectively apply operations or effects to specific areas of an image. Conventional masking techniques typically involve pixel-level masking or vector masking to define the region of interest. A pixel mask consists of a binary value assigned to each pixel in the image, where a value of 1 indicates that the pixel is contained in the mask and a value of 0 indicates that it is not contained in the mask. Vector masks, on the other hand, employ vector-based representations, such as curves or shapes, to define regions of interest. However, existing image processing systems or tools have limitations in terms of the functionality and flexibility provided by masking.
Disclosure of Invention
The embodiment of the application provides a mask operation method, a device, a storage medium and a terminal thereof, which realize the mask operation method with more flexible mask application function and more convenient operation.
A first aspect of an embodiment of the present application provides a mask operating method, which may include:
generating a mask layer based on a preset mode;
processing the mask layer according to the obtained mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
In one possible design, generating a mask layer based on a preset pattern includes:
the gray information of any image is identified, and the mask layer applied to the target image is generated according to the gray information; or alternatively
And extracting transparency information and/or inversion information of the created vector information to obtain the mask layer.
In one possible design, the editing mask includes at least a separate operation on the mask layer.
In one possible design, the applying a mask includes at least layering the Meng Bantu to a target image to obtain the effect image.
In one possible design, the inverting mask includes at least inverting the mask layer based on transparency information of the mask layer.
In one possible design, the disabling the mask includes at least hiding the mask layer in a currently displayed page.
In one possible design, the deleting the mask includes at least releasing a correspondence of the mask layer to the effect image.
In one possible design, the selectable states include at least one of a general selection state, an independent selection layer state, and an independent selection mask state.
A second aspect of an embodiment of the present application provides a mask operating apparatus, which may include:
the mask generation module is used for generating a mask layer based on a preset mode;
the mask processing module is used for processing the mask layer according to the acquired mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
A third aspect of the present embodiments provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of:
generating a mask layer based on a preset mode;
processing the mask layer according to the current operation mode;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
A fourth aspect of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
generating a mask layer based on a preset mode;
processing the mask layer according to the obtained mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
The beneficial effects of this application lie in: in the process of creating the mask layer, a user can obtain a more flexible selection mode and can create a mask more meeting the requirements; by adding various operation modes, such as editing, application, inverting, starting or stopping, deleting and the like, to the mask layer, the mask layer is configured with more flexible and changeable properties which can meet different requirements of users; by setting different selectable states for the applied mask layer, the effect image of the applied mask layer has more display styles.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a mask operation method according to an embodiment of the present application;
FIGS. 2-4 are schematic diagrams of a process for creating or generating a vector mask provided by embodiments of the present application;
FIG. 5 is an exemplary diagram of a target image provided by an embodiment of the present application;
FIG. 6 is a schematic view of an effect image based on a generated vector mask provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a mask operation page provided in an embodiment of the present application;
FIG. 8a is a schematic diagram of an alternative state of an effect image provided by an embodiment of the present application;
FIG. 8b is a schematic diagram of an alternative state of an effect image provided by an embodiment of the present application;
FIG. 8c is a schematic diagram of an alternative state of an effect image provided by an embodiment of the present application;
FIG. 9 is a schematic structural view of a mask operating device according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a mask generating module according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a mask processing module according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The mask operation method provided by the embodiment of the application can be applied to various image processing software or video processing software. The mask operation device according to the embodiment of the present application may be a tablet computer, a smart phone, a palm computer, a Mobile Internet Device (MID) and other terminal devices with an image processing function, or may be an application server with a computer processing capability used when the mask operation is performed by a repair type terminal application.
The mask operation method provided in the embodiment of the present application will be described in detail with reference to fig. 1 to 8 c.
Referring to fig. 1, a schematic flow chart of a mask operation method is provided in an embodiment of the present application. As shown in fig. 1, the method of the embodiment of the present application may include the following steps S101 to S103.
S101, generating a mask layer based on a preset mode.
It should be noted that, the mask layer may be generated in various ways, and commonly used masks generally include a layer mask, a vector mask, a fast mask, a paste mask, and a mixed color band, where the layer mask may also be a pixel mask. Masks that may support user creation in this embodiment may include at least layer masks and vector masks.
In this embodiment, at least one operation tool or operation software or terminal application capable of processing a mask may be installed in the mask operation device. The operations performed by the mask operating apparatus described in this embodiment can be understood as operations performed by the mask operating apparatus depending on the tool for mask operation.
In this embodiment, the target image may be a target layer, and the effect image may be an effect layer.
In one embodiment, the mask manipulation device at least supports a user to define a region of interest with an arbitrary image as a pixel mask. In one implementation, the mask operating device may obtain and identify a pixel operation instruction of a user based on a user operation page or a user input, and further select an image as a pixel mask according to the pixel operation instruction. For example, the mask operating device may acquire the pixel operation instruction of the user through different instruction acquisition modes such as a mouse, a keyboard, a touch screen, or voice recognition.
The mask operating device may recognize gray information of an image after selecting the image according to a user operation and convert the gray information into transparency information of an alpha channel. The gray scale information and/or transparency information may be understood as a gray scale map, for example a picture of a 32-bit band transparency channel may be converted into a gray scale map. In this embodiment, the finally obtained gray-scale image may be used as a mask layer that can be applied to the target image. The target image may be understood as an image that the user wants to modify or edit or manipulate.
In one embodiment, the mask operating device may obtain the mask layer based on the created vector information, where the created vector information may be created by the user according to the authoring requirement of the user, or may be vector information pre-stored in the mask operating device and used as a template. The so-called vector information may include at least some paths or graphics or any other information that enables a vector mask to be obtained. In this embodiment, the mask operating device may define the region of interest based on a vector-based representation of the user operation. The expression vector-based means is understood to mean an operable object formed based on the above-mentioned vector information, such as an image formed by an arbitrary regular or irregular vector graphic or a vector path formed by arbitrary path information, and the vector expression shown in fig. 2 may be a vector object of a mask. The mask manipulation device may extract transparency information and/or inversion information for any vector representation or vector-based representation to obtain a mask layer. For example, the mask operating device may perform α -channel recognition, that is, transparency information recognition, on the vector object shown in fig. 2 to obtain transparency information shown in fig. 3, and may invert the α -channel thereof to obtain inverted information shown in fig. 4, and after obtaining the inverted information, may apply the information to the target image to perform mask processing on the target image. For example, the target image in fig. 5 is a mid-autumn night image, and the effect image shown in fig. 6 can be obtained by masking the target image with the inverted information of fig. 4.
In the process of generating or creating a mask, in the operation page shown in fig. 7 displayed by the mask operation device, a mask may be created, that is, generated using a bottom menu of the operation page.
In one embodiment, the mask manipulation device may provide a plurality of creation forms of blank masks, conformal masks, preset masks, and body masks. When the function of the blank mask is triggered, the blank layer mask can be built on the selected layer or layer group, and a different instruction input mode is adopted, for example, alt is pressed to click the function to build the full black layer mask. When a selection is present, manipulating the blank mask can create the same mask as the selection (e.g., white in the selection and black outside the selection). When the function of the isomorphism mask is triggered, the mask can be established on the selected layer, and the mask is the inverse of the layer alpha channel information. When the function of the preset mask is triggered, some menus can be automatically popped up, so that a user can add the preset mask in the menus. When the main body mask function is triggered, image information of a layer can be uploaded, an online service of general high-definition segmentation is called, a result is obtained, an alpha channel of the result is identified, a black-and-white picture is obtained, and the result is used as a mask to be applied to the layer. In one implementation, the mask layer may also be dragged into the target area quickly as a mask layer.
It can be appreciated that the mask layer generated or created in any way can be used for performing mask operation on the target object immediately, or can be temporarily stored or permanently stored in the mask operation device, so that the mask layer can be called at any time when a user needs to use the mask layer. The masking operation on the target object is understood as an operation of applying a mask to the target image to merge the target image into a mask layer to obtain an effect image.
In this embodiment, the mask operation device allows the user to generate a mask more flexibly to meet the requirement of editing an image by himself, for example, mask inversion using inversion information may be used in vector mask generation or in vector mask generation. That is, the present embodiment first provides a more flexible operation method for generating a mask.
S102, processing the mask layer according to the obtained mask operation instruction.
In this embodiment, the mask operation device may select and process a mask layer according to a mask operation instruction input by a user, where the selected mask layer may be the mask flexibly created by the user, or a common mask stored in the mask operation device in a history manner, or a mask downloaded online from a network in time. It should be noted that, the mask that can be imported into the operation page and processed is within the protection scope of the present embodiment. In this embodiment, the mask operation instructions include at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask. It will be appreciated that processing the mask layer may include at least one of editing, applying, inverting, enabling or disabling, and deleting the mask layer. It will be appreciated that processing the mask layer may also include some of the operations described above for manipulating the mask, for example, all of the operations for applying the mask to the target object to obtain the effect image.
In this embodiment, editing the mask may include at least an independent operation on the mask layer. That is, the editing operation of the mask can be understood as a special display mode, and the mask can be edited more intuitively. In the process of editing the mask, the selected mask can be independently displayed in an operation page or canvas, and the layer and other layers and masks are not displayed. In one embodiment, the various operating functions and operating logic are consistent with a main interface in the mask edit mode, where the main interface may be the main page of the mask operating tool.
In one implementation, a mask operation instruction to edit a mask may be input based on different operation modes, such as editing a selected mask by clicking or double clicking on a mask thumbnail.
In this embodiment, applying the mask includes at least an operation of layering the selected mask onto the target image to obtain the effect image. In one implementation, the selected mask can be directly dragged to the target image to realize the superposition of the images to obtain the effect image, or the mask can be applied in a pasting mode or in a mode of importing or inserting the images.
In this embodiment, the inverse mask includes at least a process of inverting the mask layer according to transparency information of the selected mask layer and applying the inverted mask layer to the target image. In one implementation, the operation of inverse display may be performed in the mask object region by an operation mode such as a mouse or a touch screen.
In this embodiment, disabling the mask includes hiding the mask layer in the currently displayed page. By hidden it is understood that it is not shown, but does not represent deleted. And the display can be redisplayed, namely the starting can be realized when the display needs to be used. In one implementation, the activation or deactivation of the mask layer can be implemented in cooperation with left and right mouse keys and the like.
In this embodiment, deleting the mask includes at least releasing the corresponding relationship of the mask layer and the effect image. That is, the effect obtained by applying the mask layer to the effect image is removed, and the original target image is restored. In one implementation, the mask layer of the effect image may be deleted directly after the deletion of the mask is displayed by the right key in the mask object area. In one implementation, the mask layer or the mask object can be directly dragged out of the target layer, so that the mask layer can be kept to be an independent layer, and the association relation between the mask layer and the original target image is relieved. In this embodiment, the mask layer after the mask operation is deleted may also be stored in the mask layer stored in the history.
S103, displaying the mask layer and/or the target image based on the corresponding selectable state.
In this embodiment, the effect image obtained by applying the mask layer has a plurality of selectable states. For example, at least one of the general selection state, the independent selection layer state and the independent selection mask state shown in fig. 8a to 8c may be used. Wherein the thumbnail representations with the slash in fig. 8 a-8 c represent the mask layers that are deactivated. This state can be entered when an area other than the thumbnail of the mask layer is clicked or when a layer corresponding object is selected in the layer in the general selection state shown in fig. 8a (in this state, the style is similar to that of selecting a layer without a mask layer). When the universal selection state is used, a selection tool is used, a deformation frame in the canvas is in a state when a target image is not superimposed with a mask layer, the target image and all mask layers on the target image can be changed simultaneously when the deformation frame is moved and deformed, and only the target image is changed when the selection tool and tools (pixel class or vector class) corresponding to the attribute of the image layer are used for editing, so that the mask layers on the target image are unchanged. In the independently selected layer state shown in fig. 8b, this state can be entered by clicking on the layer thumbnail, increasing the number of pounds around the layer thumbnail by a dashed line of 1. In this state, the selection tool is used to change the target layer independently during movement and deformation, and all mask layers on the target layer are unchanged. The remaining operational rules may be consistent with the general state. In the independently selected mask state shown in fig. 8c, a new mask layer may be generated. This state can be entered by dragging other layers into the mask layer, clicking the mask layer thumbnail, and increasing the number of pounds of dashed lines around the mask layer thumbnail by 1. In the state, a selection tool is used, a deformation frame in the canvas is the state of the mask layer, and the mask layer is independently changed when moving and deforming. When the selecting type tool and the tool corresponding to the mask attribute are used for editing, only the mask layer is changed, and the target layer where the selecting type tool and the tool corresponding to the mask attribute are positioned is unchanged. In one implementation, multiple mask layers can be selected by ctrl+clicking in the state, and when multiple mask layers are selected, the deformation frame in the canvas is a combination of mask ranges, and the selected mask layers are moved and deformed simultaneously.
The embodiment can perform various different operation treatments on the generated or created or historically stored mask layer, so that the related functions of the mask are wider, the image technology is more accurate and flexible, meanwhile, the novel mask function simplifies the workflow of an image editor, and the efficiency of image processing is improved. In addition, pixel masking and vector masking techniques provide greater precision in defining regions of interest during mask generation or creation, thereby enabling more accurate and targeted modification of images.
The mask operating apparatus according to the embodiment of the present application will be described in detail with reference to fig. 9 to 11. It should be noted that, the apparatus shown in fig. 9 is used to perform the method of the embodiment shown in fig. 1 to 8c of the present application, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the embodiment shown in fig. 1 to 8c of the present application.
Referring to fig. 9, a schematic structural diagram of a mask operating device is provided in an embodiment of the present application. As shown in fig. 9, the mask operating apparatus 10 of the embodiment of the present application may include: a mask generation module 11, a mask processing module 12 and a state display module 13. In some embodiments, as shown in fig. 10, the mask generation module 11 may further include a mask creation unit 111 and a mask storage unit 112. As shown in fig. 11, the mask processing module 12 may include at least one of a mask editing unit 121, a mask application unit 122, a mask inverting unit 123, a mask enabling unit 124, a mask disabling unit 125, and a mask deleting unit 126. It will be understood that the units contained in different modules may be a single software processing program, or may be a combination of multiple processing programs, or the multiple different units may be combined into a module. The modules or units in this embodiment are not intended to uniquely define the application or operating software within the mask operating device 10, but are merely provided for convenience in describing some of the operating functions that may be present in the device 10.
The mask generation module 11 is configured to generate a mask layer based on a preset manner.
In this embodiment, the mask generating module 11 may support various ways of generating or creating masks, for example, at least a creation way based on a layer mask and a creation way based on a pixel mask. The mask generation module 11 may be a different operating tool or operating software or a software program provided in a terminal application. It should be noted that, the manner in which the mask generating module 11 generates or creates the mask layer in this embodiment may refer to the specific description in the above method embodiment, and will not be described herein again.
In an embodiment, the mask generation module 11 may be divided into different execution units, e.g. comprising a mask creation unit 111 arranged to generate or create mask layers according to a preset manner. Also included is a mask storage unit 112 arranged to store the generated mask. In one implementation, mask storage unit 112 may also be a separate storage module or may be integrated into other functional modules of the central processing unit, without limitation. That is, attributing the mask storage unit 112 to the mask generation module 11 is only one implementation.
The mask processing module 12 is configured to process a mask layer according to the acquired mask operation instruction.
In this embodiment, the mask processing module 12 may be divided into a plurality of mask processing units according to a plurality of different mask processing modes supported by the mask operating device 10, for example, at least including a mask editing unit 121, a mask applying unit 122, a mask inverting unit 123, a mask enabling unit 124, a mask disabling unit 125, and a mask deleting unit 126. The different mask processing units correspond to different mask processing operations, and specific reference may be made to the description in the above method embodiment, which is not repeated here.
In this embodiment, the mask operating apparatus 10 further includes a state presentation module 13 configured to have a plurality of selectable states based on the effect image obtained by the mask layer. In this embodiment, the state display module 13 can display at least one of the general selection state, the independent selection layer state and the independent selection mask state with reference to fig. 8a to 8 c. Reference may be made to the description of the above embodiments for the manner of presentation and operation, which are not repeated here.
In the embodiment, in the process of creating the mask layer, a user can obtain a more flexible selection mode and can create a mask more meeting requirements; by adding various operation modes, such as editing, application, inverting, starting or stopping, deleting and the like, to the mask layer, the mask layer is configured with more flexible and changeable properties which can meet different requirements of users; by setting different selectable states for the applied mask layer, the effect image of the applied mask layer has more display styles.
The embodiments of the present application further provide a computer storage medium, where a plurality of instructions may be stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the embodiments shown in fig. 1 to 8c, and the specific execution process may refer to the specific description of the embodiments shown in fig. 1 to 8c, which is not repeated herein.
Referring to fig. 12, a schematic structural diagram of a terminal is provided in an embodiment of the present application. As shown in fig. 12, the terminal 20 may include: at least one processor 201, such as a CPU, at least one network interface 204, a user interface 203, a memory 205, at least one communication bus 202. Wherein the communication bus 202 is used to enable connected communication between these components. The user interface 203 may include a Display screen (Display), a Keyboard (Keyboard), and the optional user interface 203 may further include a standard wired interface, a wireless interface. The network interface 204 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 205 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 205 may also optionally be at least one storage device located remotely from the processor 201. As shown in fig. 12, an operating system, a network communication module, a user interface module, and a mask operation application program may be included in the memory 205, which is one type of computer storage medium.
In the terminal 20 shown in fig. 12, the user interface 203 is mainly used for providing an input interface for a user, and acquiring data input by the user; the network interface 204 is used for data communication with the user terminal; and the processor 201 may be configured to invoke the masking operation application stored in the memory 205 and specifically:
generating a mask layer based on a preset mode;
processing the mask layer according to the obtained mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
In one embodiment, when performing image recognition processing on the source face image data, the processor 201 obtains source face feature points corresponding to the source face image data, and generates a source face three-dimensional grid of the source face image data according to the source face feature points, the following operations are specifically performed:
performing image recognition processing on the source face image data to obtain reference feature points of the source face image data;
and extracting three-dimensional depth information from the reference feature points, obtaining source face feature points corresponding to the reference feature points, and generating a source face three-dimensional grid according to the source face feature points.
In one embodiment, the processor 201, when executing the mask layer generation based on the preset manner, specifically performs the following operations:
the gray information of any image is identified, and the mask layer applied to the target image is generated according to the gray information; or extracting transparency information and/or inversion information from any vector information to obtain the mask layer.
In one embodiment, applying a mask includes at least layering the Meng Bantu to a target image to obtain the effect image.
In one embodiment, the editing mask includes at least a separate operation on the mask layer.
In one embodiment, the inverting mask includes inverting the mask layer based at least on transparency information of the mask layer.
In one embodiment, deactivating the mask includes hiding the mask layer in at least a currently displayed page.
In one embodiment, the deleting the mask includes at least releasing a correspondence of the mask layer to the effect image.
In one embodiment, the selectable states include at least one of a general selection state, an independent selection layer state, and an independent selection mask state.
In the embodiment of the application, in the process of creating the mask layer, a user can obtain a more flexible selection mode and can create a mask more meeting requirements; by adding various operation modes, such as editing, application, inverting, starting or stopping, deleting and the like, to the mask layer, the mask layer is configured with more flexible and changeable properties which can meet different requirements of users; by setting different selectable states for the applied mask layer, the effect image of the applied mask layer has more display styles.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs stored in a computer-readable storage medium, which when executed, may include the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (10)

1. A method of masking operations, the method comprising at least:
generating a mask layer based on a preset mode;
processing the mask layer according to the obtained mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
2. The method of claim 1, wherein generating the mask layer based on the preset manner comprises:
the gray information of any image is identified, and the mask layer applied to the target image is generated according to the gray information; or alternatively
And extracting transparency information and/or inversion information of the created vector information to obtain the mask layer.
3. The method of claim 1, wherein editing the mask includes at least a separate operation on the mask layer.
4. The method of claim 1, wherein inverting the mask includes inverting the mask layer based at least on transparency information of the mask layer.
5. The method of claim 1, wherein disabling the mask includes at least hiding the mask layer in a currently displayed page.
6. The method of claim 1, wherein the deleting a mask includes at least releasing a correspondence of the mask layer to the effect image.
7. The method of claim 1, wherein the selectable states comprise at least one of a general selection state, an independent selection layer state, and an independent selection mask state.
8. A mask operating apparatus, comprising:
the mask generation module is used for generating a mask layer based on a preset mode;
the mask processing module is used for processing the mask layer according to the acquired mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 8.
10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
generating a mask layer based on a preset mode;
processing the mask layer according to the obtained mask operation instruction;
wherein the mask operation instruction includes at least one of editing a mask, applying a mask, inverting a mask, enabling or disabling a mask, and deleting a mask;
the effect image obtained based on the mask layer has a plurality of selectable states.
CN202311708350.9A 2023-12-12 2023-12-12 Mask operation method and equipment, storage medium and terminal thereof Pending CN117649460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311708350.9A CN117649460A (en) 2023-12-12 2023-12-12 Mask operation method and equipment, storage medium and terminal thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311708350.9A CN117649460A (en) 2023-12-12 2023-12-12 Mask operation method and equipment, storage medium and terminal thereof

Publications (1)

Publication Number Publication Date
CN117649460A true CN117649460A (en) 2024-03-05

Family

ID=90047725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311708350.9A Pending CN117649460A (en) 2023-12-12 2023-12-12 Mask operation method and equipment, storage medium and terminal thereof

Country Status (1)

Country Link
CN (1) CN117649460A (en)

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
冯燕妮;: "浅谈photoshop蒙版", 福建电脑, no. 12, 25 December 2013 (2013-12-25), pages 166 - 167 *
张雪峰;赵莉;: "蒙版在数字图像后期处理中的应用", 信息与电脑(理论版), no. 08, 23 April 2016 (2016-04-23), pages 81 - 82 *
梁丽容;: "浅谈Photoshop中图层蒙版的使用", 信息通信, no. 09, 15 November 2013 (2013-11-15), pages 103 *
陈俊红;于兰;魏翔;: "蒙版技术在图像处理中的应用研究", 中国校外教育, no. 22, 10 August 2013 (2013-08-10), pages 172 - 173 *

Similar Documents

Publication Publication Date Title
US11468614B2 (en) Presenting multiple image segmentations
US7661071B2 (en) Creation of three-dimensional user interface
CA2124603C (en) Method and apparatus for operating on the model data structure of an image to produce human perceptible output in the context of the image
US11049307B2 (en) Transferring vector style properties to a vector artwork
CN111583379B (en) Virtual model rendering method and device, storage medium and electronic equipment
JP2022125297A (en) Line drawing automatic coloring program, line drawing automatic coloring apparatus, and program for graphical user interface
CN106447756B (en) Method and system for generating user-customized computer-generated animations
US10902657B2 (en) Jointly editing related objects in a digital image
US11475617B2 (en) Path-constrained drawing with visual properties based on drawing tool
CN113093960B (en) Image editing method, editing device, electronic device and readable storage medium
EP3005368B1 (en) Image edits propagation to underlying video sequence via dense motion fields.
JPWO2018203374A1 (en) Line drawing automatic coloring program, line drawing automatic coloring device and program for graphical user interface
KR102573822B1 (en) Method for changing style and replaying of vector image
CN113926190A (en) Method and device for controlling three-dimensional model in game editor and storage medium
US11625900B2 (en) Broker for instancing
CN111158840B (en) Image carousel method and device
CN117649460A (en) Mask operation method and equipment, storage medium and terminal thereof
CN113741775A (en) Image processing method and device and electronic equipment
US20230343038A1 (en) Method and system for creating augmented reality filters on mobile devices
CN113838163A (en) Region graph drawing plug-in, method and device, electronic equipment, system and medium
CN115501597A (en) Map generation method and device
CN117197289A (en) Pattern rendering method and system based on templates
JP2004199130A (en) Information visualizing method, device, and program
CN117592098A (en) Image storage method and device
CN113807059A (en) Text editing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination