CN110070586A - Generation method, device and the electronic equipment of colour atla - Google Patents

Generation method, device and the electronic equipment of colour atla Download PDF

Info

Publication number
CN110070586A
CN110070586A CN201910147662.4A CN201910147662A CN110070586A CN 110070586 A CN110070586 A CN 110070586A CN 201910147662 A CN201910147662 A CN 201910147662A CN 110070586 A CN110070586 A CN 110070586A
Authority
CN
China
Prior art keywords
reference axis
colour atla
value
color
color value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910147662.4A
Other languages
Chinese (zh)
Other versions
CN110070586B (en
Inventor
郑微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910147662.4A priority Critical patent/CN110070586B/en
Publication of CN110070586A publication Critical patent/CN110070586A/en
Application granted granted Critical
Publication of CN110070586B publication Critical patent/CN110070586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present disclosure discloses a kind of generation method of colour atla, device, electronic equipment and computer readable storage mediums.Wherein the generation method of the colour atla includes: to obtain the first coordinate system, and first coordinate system includes three reference axis;The first reference axis, the second reference axis and third reference axis in three reference axis is corresponded respectively to three different Color Channels in rgb space;Intermediate colour atla is generated according to the value of the first reference axis and the second reference axis;Obtain the sampled value of third reference axis;The colour atla is generated based on the sampled value and the intermediate colour atla.The embodiment of the present disclosure generates colour atla by the value of traversal coordinate system, solves colour atla in the prior art and needs the technical issues of obtaining caused network resources waste from other sources.

Description

Generation method, device and the electronic equipment of colour atla
Technical field
This disclosure relates to field of image processing more particularly to a kind of generation method of colour atla, device, electronic equipment and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of computer technology, the application range of intelligent terminal has obtained extensive raising, such as can pass through Intelligent terminal listens to music, plays game, chats on line and take pictures.For the shooting technology of intelligent terminal, pixel of taking pictures Have reached ten million pixel or more, the effect of taking pictures of clarity with higher and the mm professional camera special that matches in excellence or beauty.
At present when being taken pictures using intelligent terminal, built-in software realization tradition of taking pictures when factory not only can be used The effect of taking pictures of function can also realize tool by downloading application program (Application, referred to as are as follows: APP) from network-side There is the effect of taking pictures of additional function, such as the APP of half-light detection, the U.S. functions such as face camera and super pixel may be implemented.Filter It is that used effect when video is taken pictures or shot to relatively common one kind, most filters are all to be carried out using colour atla to image Processing.
Currently, colour atla is typically all directly to be packaged in colour atla picture in program bag, or download from network-side, either Which kind of mode it can all carry out very big pressure to Netowrk tape using, when user volume is very big, each user is using filter Shi Douxu Colour atla picture used in filter is transmitted in a network, if may also result in and pass repeatedly in the case where network error Defeated colour atla picture further increases the pressure of network.
Summary of the invention
In a first aspect, the embodiment of the present disclosure provides a kind of generation method of colour atla, comprising: the first coordinate system is obtained, it is described First coordinate system includes three reference axis;
The first reference axis, the second reference axis and third reference axis in three reference axis is corresponded respectively into RGB sky Between in three different Color Channels;
Intermediate colour atla is generated according to the value of first reference axis and second reference axis;
Obtain the sampled value of the third reference axis;
The colour atla is generated based on the sampled value and the intermediate colour atla.
Further, first coordinate system is three Cartesian coordinates comprising three X-axis, Y-axis and Z axis coordinates Axis.
Further, the first reference axis, the second reference axis and the third reference axis by three reference axis point It Dui Yingyu three different Color Channels in rgb space, comprising:
The value of first reference axis is corresponded to the color value of the first Color Channel;
The value of second reference axis is corresponded to the color value of the second Color Channel;
The value of the third reference axis is corresponded to the color value of third Color Channel.
It is further, described that intermediate colour atla is generated according to the value of the first reference axis and the second reference axis, comprising:
Obtain the first color value in first reference axis and the second color value in second reference axis;
First color value and the second color value are assigned to the face of two Color Channels in RGB color respectively Color value is to generate intermediate colour atla.
Further, described to obtain the first color value in the first reference axis and the second color in the second reference axis Value, comprising:
Obtain the second color value in the range and second reference axis of the first color value in first reference axis Range.
Further, two first color value and the second color value are assigned to respectively in RGB color The color value of a Color Channel is to generate intermediate colour atla, comprising:
The first face in all RGB colors is traversed in the range of the first color value and in the range of the second color value The color value of color value and the second color value composition is to form the intermediate colour atla.
Further, second in the range and the second reference axis of the first color value in the first reference axis of the acquisition Before the range of color value, further includes:
The first colour atla configuration file is obtained, includes the range and second of the first color value in the first colour atla configuration file The range of color value.
Further, the sampled value for obtaining third reference axis, comprising:
Obtain the sample rate of third reference axis;
The sampled value is calculated according to the total and described sample rate of color value.
Further, before the sample rate for obtaining third reference axis further include:
The second colour atla configuration file is obtained, includes the sampling of the third reference axis in the second colour atla configuration file Rate.
It is further, described to be based on the sampled value and the intermediate colour atla generation colour atla, comprising:
The sampled value of the third reference axis is assigned to the third Color Channel of the intermediate colour atla to generate multiple sons Colour atla;
The multiple sub- colour atla is arranged in order and generates the colour atla.
Second aspect, the embodiment of the present disclosure provide a kind of generating means of colour atla, comprising:
Coordinate system obtains module, and for obtaining the first coordinate system, first coordinate system includes three reference axis;
Color Channel respective modules, for by the first reference axis, the second reference axis and the third in three reference axis Reference axis corresponds respectively to three different Color Channels in rgb space;
Intermediate colour atla generation module generates intermediate colour atla according to the value of first reference axis and second reference axis;
Sampled value obtains module, for obtaining the sampled value of the third reference axis;
Colour atla generation module, for generating the colour atla based on the sampled value and the intermediate colour atla.
Further, first coordinate system is three Cartesian coordinates comprising three X-axis, Y-axis and Z axis coordinates Axis.
Further, the Color Channel respective modules, further includes:
First Color Channel respective modules, for the value of first reference axis to be corresponded to the color of the first Color Channel Value;
Second Color Channel respective modules, for the value of second reference axis to be corresponded to the color of the second Color Channel Value;
Third Color Channel respective modules, for the value of the third reference axis to be corresponded to the color of third Color Channel Value.
Further, the intermediate colour atla generation module, further includes:
Color value obtains module, for obtaining the first color value and second reference axis in first reference axis On the second color value;
Color value assignment module, for first color value and the second color value to be assigned to RGB color respectively In two Color Channels color value to generate intermediate colour atla.
Further, the color value obtains module and is also used to: obtaining the range of the first color value in the first reference axis With the range of the second color value in the second reference axis;
Further, the color value assignment module is also used to: in the range of the first color value and the second color value The color value of the first color value and the second color value composition in range in all RGB colors of traversal is to form in described Between colour atla.
Further, the intermediate colour atla generation module, further includes:
First colour atla configuration file obtains module, for obtaining the first colour atla configuration file, the first colour atla configuration text The range of range and the second color in part including the first color value.
Further, the sampled value obtains module, further includes:
Sample rate obtains module, for obtaining the sample rate of third reference axis;
Sampled value computing module, for calculating the sampled value according to the total and described sample rate of color value.
Further, the sampled value obtains module, further includes:
Second colour atla configuration file obtains module, for obtaining the second colour atla configuration file, the second colour atla configuration text It include the sample rate of the third reference axis in part.
Further, the colour atla generation module, further includes:
Sub- colour atla generation module is sat for the sampled value of the third reference axis to be assigned to third in the intermediate colour atla Corresponding Color Channel is in mark to generate multiple sub- colour atlas;
Sub- colour atla arranges module, generates the colour atla for the multiple sub- colour atla to be arranged in order.
The third aspect, the embodiment of the present disclosure provide a kind of electronic equipment, comprising: at least one processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing Device is able to carry out the generation method of any colour atla in aforementioned first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of non-transient computer readable storage medium, which is characterized in that described Non-transient computer readable storage medium stores computer instruction, and the computer instruction is for making computer execute aforementioned first The generation method of any colour atla in aspect.
The present disclosure discloses a kind of generation method of colour atla, device, electronic equipment and computer readable storage mediums.Wherein The generation method of the colour atla includes: to obtain the first coordinate system, and first coordinate system includes three reference axis;By described three The first reference axis, the second reference axis and third reference axis in reference axis correspond respectively to three different face in rgb space Chrominance channel;Intermediate colour atla is generated according to the value of the first reference axis and the second reference axis;Obtain the sampled value of third reference axis;It is based on The sampled value and the intermediate colour atla generate the colour atla.The embodiment of the present disclosure generates color by the value of traversal coordinate system Card solves colour atla in the prior art and needs the technical issues of obtaining caused network resources waste from other sources.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this public affairs The some embodiments opened for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the generation method embodiment for the colour atla that the embodiment of the present disclosure provides;
Fig. 2 is the further process of step S104 in the generation method embodiment for the colour atla that the embodiment of the present disclosure provides Figure;
The schematic diagram of sub- colour atla is generated in the generation method embodiment for the colour atla that Fig. 3 provides for the embodiment of the present disclosure;
Sub- colour atla is arranged in the signal of colour atla in the generation method embodiment for the colour atla that Fig. 4 provides for the embodiment of the present disclosure Figure;
Fig. 5 is the structural schematic diagram of the embodiment of the generating means for the colour atla that the embodiment of the present disclosure provides;
Fig. 6 is the structural schematic diagram of the electronic equipment provided according to the embodiment of the present disclosure.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
Fig. 1 is the flow chart of the generation method embodiment one for the colour atla that the embodiment of the present disclosure provides, provided in this embodiment The generation method of the colour atla can be executed by the generating means of a colour atla, and the generating means of the colour atla can be implemented as soft Part, or it is embodied as the combination of software and hardware, the generating means of the colour atla can integrate the generation system that colour atla is arranged in In certain equipment in, for example in the generation terminal device of colour atla, the generation method of the colour atla can have user in the disclosure Terminal device such as mobile phone execute.As shown in Figure 1, described method includes following steps:
Step S101, obtains the first coordinate system, and first coordinate system includes three reference axis;
In the step, typical first coordinate system is a three-dimensional cartesian coordinate system, that is, three coordinates The mutually perpendicular coordinate system of axis, including X-axis, Y-axis and Z axis.Typically, first coordinate system can be by OPENGL Variable gl_FragCoord is set to indicate, the first coordinate can be respectively indicated comprising tri- variables of X, Y, Z in gl_FragCoord Three reference axis of system.Or be also possible to generate in terminal device in the first coordinate system, it only needs to initialize X, Y, Z Three variables, details are not described herein.
Step S102: by three reference axis the first reference axis, the second reference axis and third reference axis it is right respectively It should three different Color Channels in rgb space;
In the step, by three reference axis of the first coordinate system acquired in step s101: the first reference axis, second Reference axis and third reference axis correspond respectively to three different Color Channels in rgb space.It, can be in the step Above-mentioned respective operations are can be completed into the color value that the value of one reference axis corresponds on a Color Channel.Optionally, by institute The value for stating the first reference axis corresponds to the color value of the first Color Channel;The value of second reference axis is corresponded into the second color The color value in channel;The value of the third reference axis is corresponded to the color value of third Color Channel.The first, second He herein Third reference axis is simultaneously not specific to some reference axis, but any one in three reference axis, and first, second, and third is only Distinguish these three reference axis;The first, second, and third Color Channel herein and be not specific in RGB triple channel some is logical Road, but any one in three channels, first, second, and third only for distinguishing these three channels.It is specific at one In example, using the value of X-axis as the channel the R color value in RGB color, using the value of Y-axis as the G in RGB color Channel color value, using the value of Z axis as the channel the G color value in RGB color.In one embodiment, it can set in advance The corresponding relationship between reference axis and Color Channel is set, when generating colour atla, according to the corresponding relationship by reference axis and color Channel respectively corresponds, and details are not described herein.
Step S103: intermediate colour atla is generated according to the value of the first reference axis and the second reference axis;
In the step, the intermediate colour atla is only the colour atla comprising two kinds of color components or to have a kind of color component It is fixed as 0 colour atla.It is described that intermediate colour atla packet is generated according to the value of the first reference axis and the second reference axis in the step It includes: obtaining the first color value in the first reference axis and the second color value in the second reference axis;By first color value The color value for two Color Channels being assigned in RGB color respectively with the second color value is to generate intermediate colour atla.It is optional , the coordinate value of X-axis is obtained, the coordinate value of X-axis is assigned to the channel R in RGB color;The coordinate value for obtaining Y-axis, by Y The coordinate value of axis is assigned to the channel G in RGB color, and channel B can be defaulted as 0 or be not provided with the value of channel B, in this way Obtain the intermediate colour atla being located in the plane that X-axis and Y-axis form.Further, the obtained in the first reference axis The second color value on one color value and the second reference axis may include: the model for obtaining the first color value in the first reference axis Enclose the range with the second color value in the second reference axis.It is described to be assigned to first color value and the second color value respectively The color value of two Color Channels in RGB color is to generate intermediate colour atla, comprising: in the range of the first color value and The color value pair of the first color value and the second color value composition in all RGB colors is traversed in the range of second color value To form the intermediate colour atla.Above-mentioned ergodic process is as follows: setting the first color value has N number of, and the second color value has M, wherein N Integer with M is more than or equal to 0, takes 1 the first color value in N, traverses M the second color values later, forms M color value It is right, M the second colors are all traversed to each of first color, ultimately generate N*M the first color values and the second color value The color value pair of composition, this N*M color is to the formation intermediate colour atla.In the specific embodiment, the first face is obtained The range of the range of color value and the second color value, such as integer of first color value between [0,255], the second color be also [0, 255] integer between sets 0 for the first color value first in this way, then all 256 in the second color traversal [0,255] A integer obtains the color of 256 points, sets 1,2,3255 for the first color value later, executes respectively above-mentioned time Step is gone through, the color of 256*256 point is obtained, using the result as intermediate colour atla.For 8 images, each of which The color value in channel has 28=256 are worth, and generate standard color card under default situations, can traverse this for each Color Channel 256 values;And in some cases, in order to generate specific colour atla, the range of the value of adjustable Color Channel, the range It can be arranged by mapping relations, such as X '=kX, wherein the value range of X default is [0,255], as K=0.2, X's ' Range is [0,51], it is possible thereby to adjust the color of Color Channel, and then the color for influencing entire colour atla is different from mark to generate The specific colour atla of quasi- colour atla.Optionally, the range and the second reference axis of the first color value in the first reference axis of the acquisition On the second color value range before, further includes: obtain the first colour atla configuration file, wrap in the first colour atla configuration file Include the range of the first color value and the range of the second color.In the step, the first colour atla configuration file is to match in advance It has been set that, the first colour atla configuration file can be located at network-side, be handed down to terminal device by the server of network-side, pass through The first colour atla configuration file can configure the color of colour atla, form special colour atla used in image special effect.
It is understood that yes the value of the reference axis can be normalized value, and color value is normalized to [0,1] with table Show same color, the normalization can obtain the color value divided by the maximum value of color value, specifically, when color value is When integer between [0,255], color value 0 normalize after be 0/255=0, color value 5 normalize after be 5/255=0.0196, And so on all color values and coordinate value can be normalized, so no matter color how many, can unify arrive using 0 1 coordinate value indicates.
Step S104: the sampled value of third reference axis is obtained;
The sampled value of the third coordinate, is the value of third coordinate, and the value determines the essence of finally formed colour atla Degree.For 8 colour charts, the color value in each channel is 256, is come at this point for the colour chart of most thin precision It says, 256 values of the sampled value between [0,255] for the scene for not needing high-precision colour atla, can be set in advance Sampled value is set, the pre-set sampled value can be less than 256.
Optionally, as shown in Fig. 2, the step S104 may include:
Step S201: the sample rate of third reference axis is obtained;
Step S202: the sampled value is calculated according to the total and described sample rate of color value.
In step s 201, the sample rate is to be spaced the frequency of value, if sample rate is 4, then in third reference axis Sampled value of the value as third reference axis is taken every 4 values.
In step S202, the quantity of sampled value is obtained divided by sample rate using the sum of color value, later according to sampling Rate samples the quantity sampled value.Specifically, sample rate 4, then 256/4=64, then exist when the color value is 256 Sampled value 0,4,8,12252 is taken in third reference axis.
Optionally, before the step S201, further includes: obtain the second colour atla configuration file, second colour atla is matched Set the sample rate in file including the third reference axis.In the step, the second colour atla configuration file is to match in advance It has been set that, the second colour atla configuration file can be located at network-side, be handed down to terminal device by the server of network-side, pass through The second colour atla configuration file can configure the color accuracy of a certain Color Channel of colour atla.It should be understood that institute The the first colour atla configuration file stated in the second colour atla configuration file and step S103 of step can be the same configuration file, I other words the configuration parameter of colour atla can once configuration be completed in the same colour atla configuration file, without using multiple match Set file.
Optionally, the sampled value in step S104 can also specify directly in color value.Specifically, working as the color value For the integer between 256, including [0,255], at this point it is possible to the sampled value of directly specified third reference axis is 0,10,100, 200,255.It should be understood that setting color value one shares n, n is the integer greater than 0, and sampled value can specify between [0, n] Any number value, the same sampled value can also be configured by colour atla configuration file, and details are not described herein.
Step S105: the colour atla is generated based on the sampled value and the intermediate colour atla.
It is described to be based on the sampled value and the intermediate colour atla generation colour atla in the step, comprising:
The sampled value of the third reference axis is assigned in the intermediate colour atla color corresponding in third coordinate to lead to Road is to generate multiple sub- colour atlas;The multiple sub- colour atla is arranged in order and generates the colour atla.
In above-mentioned steps, if sampled value is α, the α sampled value is distinguished to the third of intermediate colour atla described in assignment The color value of Color Channel obtains α sub- colour atlas, and the α sub- colour atlas are arranged in order the generation colour atla.Such as Fig. 3 Shown, optionally, the value of X-axis represents the color value in the channel R in RBG color space, and Y-axis represents the color in the channel G in rgb space Value, Z axis represent the color value of channel B in rgb space, and when 256 integer values of the color value between [0,255], sampled value is When 0,4,8,12252 equal 64 values, the intermediate colour atla is successively moved according to sampled value on Z axis, obtains 64 sons Colour atla, wherein 301 are equal to 0 sub- colour atla for Z axis value, 302 are equal to 4 sub- colour atla for Z axis value, and 303 are equal to 8 son for Z axis value Colour atla, 304 are equal to 12 sub- colour atla for Z axis value, and 305 are equal to 252 sub- colour atla for Z axis value, and intermediate other sub- colour atlas do not show Out.It is generated as shown in figure 4,64 sub- colour atlas are arranged according to the sequence of Z axis sampled value 0,4,8,12252 from small to large The colour atla of 8*8.
The present disclosure discloses a kind of generation method of colour atla, device, electronic equipment and computer readable storage mediums.Wherein The generation method of the colour atla includes: to obtain the first coordinate system, and first coordinate system includes three reference axis;By described three The first reference axis, the second reference axis and third reference axis in reference axis correspond respectively to three different face in rgb space Chrominance channel;Intermediate colour atla is generated according to the value of the first reference axis and the second reference axis;Obtain the sampled value of third reference axis;It is based on The sampled value and the intermediate colour atla generate the colour atla.The embodiment of the present disclosure generates color by the value of traversal coordinate system Card solves colour atla in the prior art and needs the technical issues of obtaining caused network resources waste from other sources.
Fig. 5 is the structural schematic diagram of the generating means for the colour atla that the embodiment of the present disclosure provides, as shown in figure 5, described device 500 include: that coordinate system obtains module 501, Color Channel respective modules 502, intermediate colour atla generation module 503, sampled value acquisition Module 504 and colour atla generation module 505.Wherein,
Coordinate system obtains module 501, and for obtaining the first coordinate system, first coordinate system includes three reference axis;
Color Channel respective modules 502, for by the first reference axis, the second reference axis and in three reference axis Three axes correspond respectively to three different Color Channels in rgb space;
Intermediate colour atla generation module 503 generates Neutral colour according to the value of first reference axis and second reference axis Card;
Sampled value obtains module 504, for obtaining the sampled value of the third reference axis;
Colour atla generation module 505, for generating the colour atla based on the sampled value and the intermediate colour atla.
Further, first coordinate system is three Cartesian coordinates comprising three X-axis, Y-axis and Z axis coordinates Axis.
Further, the Color Channel respective modules 502, further includes:
First Color Channel respective modules, for the value of first reference axis to be corresponded to the color of the first Color Channel Value;
Second Color Channel respective modules, for the value of second reference axis to be corresponded to the color of the second Color Channel Value;
Third Color Channel respective modules, for the value of the third reference axis to be corresponded to the color of third Color Channel Value.
Further, the intermediate colour atla generation module 503, further includes:
Color value obtains module, for obtaining the first color value and second reference axis in first reference axis On the second color value;
Color value assignment module, for first color value and the second color value to be assigned to RGB color respectively In two Color Channels color value to generate intermediate colour atla.
Further, the color value obtains module and is also used to: obtaining the range of the first color value in the first reference axis With the range of the second color value in the second reference axis;
Further, the color value assignment module is also used to: in the range of the first color value and the second color value The color value of the first color value and the second color value composition in range in all RGB colors of traversal is to form in described Between colour atla.
Further, the intermediate colour atla generation module 503, further includes:
First colour atla configuration file obtains module, for obtaining the first colour atla configuration file, the first colour atla configuration text The range of range and the second color in part including the first color value.
Further, the sampled value obtains module 504, further includes:
Sample rate obtains module, for obtaining the sample rate of third reference axis;
Sampled value computing module, for calculating the sampled value according to the total and described sample rate of color value.
Further, the sampled value obtains module 504, further includes:
Second colour atla configuration file obtains module, for obtaining the second colour atla configuration file, the second colour atla configuration text It include the sample rate of the third reference axis in part.
Further, the colour atla generation module 505, further includes:
Sub- colour atla generation module is sat for the sampled value of the third reference axis to be assigned to third in the intermediate colour atla Corresponding Color Channel is in mark to generate multiple sub- colour atlas;
Sub- colour atla arranges module, generates the colour atla for the multiple sub- colour atla to be arranged in order.
The method that Fig. 5 shown device can execute Fig. 1 and embodiment illustrated in fig. 2, the part that the present embodiment is not described in detail, It can refer to the related description to Fig. 1 and embodiment illustrated in fig. 2.The implementation procedure and technical effect of the technical solution are referring to Fig. 1 With the description in embodiment illustrated in fig. 2, details are not described herein.
Below with reference to Fig. 6, it illustrates the structural representations for the electronic equipment 600 for being suitable for being used to realize the embodiment of the present disclosure Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 6 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM 603 pass through the phase each other of bus 604 Even.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, figure As the input unit 606 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking The output device 607 of device, vibrator etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.It is logical T unit 609 can permit electronic equipment 600 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although Fig. 6 shows The electronic equipment 600 with various devices is gone out, it should be understood that being not required for implementing or having all dresses shown It sets.It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, the computer program includes the program code for method shown in execution flow chart.Such In embodiment, the computer program can be downloaded and installed from network by communication device 609, or from storage device 608 are mounted, or are mounted from ROM 602.When the computer program is executed by processing unit 601, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, described program can be commanded execution system, device or device use or in connection.And In the disclosure, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable signal media can send, propagate or transmit For by the use of instruction execution system, device or device or program in connection.It is wrapped on computer-readable medium The program code contained can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc., or Above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are described When electronic equipment executes, so that the electronic equipment: obtaining the first coordinate system, first coordinate system includes three reference axis; The first reference axis, the second reference axis and third reference axis in three reference axis is corresponded respectively to three in rgb space A different Color Channel;Intermediate colour atla is generated according to the value of first reference axis and second reference axis;Described in acquisition The sampled value of third reference axis;The colour atla is generated based on the sampled value and the intermediate colour atla.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (13)

1. a kind of generation method of colour atla, comprising:
The first coordinate system is obtained, first coordinate system includes three reference axis;
The first reference axis, the second reference axis and third reference axis in three reference axis is corresponded respectively in rgb space Three different Color Channels;
Intermediate colour atla is generated according to the value of first reference axis and second reference axis;
Obtain the sampled value of the third reference axis;
The colour atla is generated based on the sampled value and the intermediate colour atla.
2. the generation method of colour atla as described in claim 1, in which:
First coordinate system is three Cartesian coordinates comprising three X-axis, Y-axis and Z axis reference axis.
3. the generation method of colour atla as described in claim 1, wherein first reference axis by three reference axis, Second reference axis and third reference axis correspond respectively to three different Color Channels in rgb space, comprising:
The value of first reference axis is corresponded to the color value of the first Color Channel;
The value of second reference axis is corresponded to the color value of the second Color Channel;
The value of the third reference axis is corresponded to the color value of third Color Channel.
4. the generation method of colour atla as described in claim 1, wherein the value according to the first reference axis and the second reference axis Generate intermediate colour atla, comprising:
Obtain the first color value in first reference axis and the second color value in second reference axis;
First color value and the second color value are assigned to the color value of two Color Channels in RGB color respectively To generate intermediate colour atla.
5. the generation method of colour atla as described in claim 4, wherein first color value obtained in the first reference axis And second the second color value in reference axis, comprising:
Obtain the range of the first color value in first reference axis and the model of the second color value in second reference axis It encloses.
6. the generation method of colour atla as claimed in claim 5, wherein described by first color value and the second color value point The color value for two Color Channels not being assigned in RGB color is to generate intermediate colour atla, comprising:
The first color value in all RGB colors is traversed in the range of the first color value and in the range of the second color value Color value with the second color value composition is to form the intermediate colour atla.
7. the generation method of colour atla as described in claim 5, wherein the first color in the first reference axis of the acquisition Before the range of the second color value in the range of value and the second reference axis, further includes:
The first colour atla configuration file is obtained, includes the range and the second color of the first color value in the first colour atla configuration file The range of value.
8. the generation method of colour atla as described in claim 1, wherein the sampled value for obtaining third reference axis, comprising:
Obtain the sample rate of third reference axis;
The sampled value is calculated according to the total and described sample rate of color value.
9. the generation method of colour atla as claimed in claim 7, wherein also being wrapped before the sample rate for obtaining third reference axis It includes:
The second colour atla configuration file is obtained, includes the sample rate of the third reference axis in the second colour atla configuration file.
10. the generation method of colour atla as claimed in claim 3, wherein described be based on the sampled value and the intermediate colour atla Generate the colour atla, comprising: by the sampled value of the third reference axis be assigned to the third Color Channel of the intermediate colour atla with Generate multiple sub- colour atlas;
The multiple sub- colour atla is arranged in order and generates the colour atla.
11. a kind of generating means of colour atla, comprising:
Coordinate system obtains module, and for obtaining the first coordinate system, first coordinate system includes three reference axis;
Color Channel respective modules, for by the first reference axis, the second reference axis and the third coordinate in three reference axis Axis corresponds respectively to three different Color Channels in rgb space;
Intermediate colour atla generation module generates intermediate colour atla according to the value of first reference axis and second reference axis;
Sampled value obtains module, for obtaining the sampled value of the third reference axis;
Colour atla generation module, for generating the colour atla based on the sampled value and the intermediate colour atla.
12. a kind of electronic equipment, comprising:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction so that the processor execute when realize according to claim 1- The generation method of colour atla described in any one of 10.
13. a kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory meter When calculation machine readable instruction is executed by computer, so that the computer perform claim requires colour atla described in any one of 1-10 Generation method.
CN201910147662.4A 2019-02-27 2019-02-27 Color card generation method and device and electronic equipment Active CN110070586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147662.4A CN110070586B (en) 2019-02-27 2019-02-27 Color card generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147662.4A CN110070586B (en) 2019-02-27 2019-02-27 Color card generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110070586A true CN110070586A (en) 2019-07-30
CN110070586B CN110070586B (en) 2020-04-03

Family

ID=67366017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147662.4A Active CN110070586B (en) 2019-02-27 2019-02-27 Color card generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110070586B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102441A (en) * 2020-09-14 2020-12-18 上海米哈游天命科技有限公司 Color card manufacturing method and device, electronic equipment and storage medium
WO2023035943A1 (en) * 2021-09-10 2023-03-16 北京字跳网络技术有限公司 Color card generating method, image processing method, and apparatuses, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014118571A (en) * 2012-12-18 2014-06-30 Xerox Corp Violet curable ink
CN104835124A (en) * 2015-05-08 2015-08-12 中南大学 Foam image color correction method based on spectrum information fusion and device thereof
US9563973B2 (en) * 2014-11-10 2017-02-07 Adobe Systems Incorporated Color selector for desktop publishing
CN106404682A (en) * 2016-12-01 2017-02-15 北京林业大学 Soil color recognition method
CN107895366A (en) * 2017-11-07 2018-04-10 国网重庆市电力公司电力科学研究院 Towards the imaging method of color evaluation, system and computer readable storage devices
CN108304849A (en) * 2018-01-15 2018-07-20 浙江理工大学 A kind of bird plumage color character extracting method
US10122699B1 (en) * 2017-05-31 2018-11-06 InfoSci, LLC Systems and methods for ephemeral shared data set management and communication protection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014118571A (en) * 2012-12-18 2014-06-30 Xerox Corp Violet curable ink
US9563973B2 (en) * 2014-11-10 2017-02-07 Adobe Systems Incorporated Color selector for desktop publishing
CN104835124A (en) * 2015-05-08 2015-08-12 中南大学 Foam image color correction method based on spectrum information fusion and device thereof
CN106404682A (en) * 2016-12-01 2017-02-15 北京林业大学 Soil color recognition method
US10122699B1 (en) * 2017-05-31 2018-11-06 InfoSci, LLC Systems and methods for ephemeral shared data set management and communication protection
CN107895366A (en) * 2017-11-07 2018-04-10 国网重庆市电力公司电力科学研究院 Towards the imaging method of color evaluation, system and computer readable storage devices
CN108304849A (en) * 2018-01-15 2018-07-20 浙江理工大学 A kind of bird plumage color character extracting method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KORICHI: "《Quantitative assessment of properties of make-up products by video imaging:application to lipsticks》", 《SKIN RESEARCH AND TECHNOLOGY 》 *
杨跃川 等: "《基于自制色卡的网络色彩管理》", 《杭州电子科技大学学报( 自然科学版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102441A (en) * 2020-09-14 2020-12-18 上海米哈游天命科技有限公司 Color card manufacturing method and device, electronic equipment and storage medium
WO2023035943A1 (en) * 2021-09-10 2023-03-16 北京字跳网络技术有限公司 Color card generating method, image processing method, and apparatuses, and readable storage medium

Also Published As

Publication number Publication date
CN110070586B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
EP3039530B1 (en) Method and system for presenting content
CN110070896A (en) Image processing method, device, hardware device
CN112738634B (en) Video file generation method, device, terminal and storage medium
CN112102437B (en) Canvas-based radar map generation method and device, storage medium and terminal
CN110221822A (en) Merging method, device, electronic equipment and the computer readable storage medium of special efficacy
CN110070585A (en) Image generating method, device and computer readable storage medium
CN110070515A (en) Image composition method, device and computer readable storage medium
CN109714332A (en) The method for converting protocol and device parsed based on Thrift and syntax tree
CN110070495A (en) Processing method, device and the electronic equipment of image
CN110070586A (en) Generation method, device and the electronic equipment of colour atla
CN110070592B (en) Generation method and device of special effect package and hardware device
CN109788334A (en) Barrage processing method, device, electronic equipment and computer readable storage medium
US20230360286A1 (en) Image processing method and apparatus, electronic device and storage medium
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN110134905B (en) Page update display method, device, equipment and storage medium
CN110209861A (en) Image processing method, device, electronic equipment and computer readable storage medium
WO2023109564A1 (en) Video image processing method and apparatus, and electronic device and storage medium
CN109684116A (en) Data sharing method, device, equipment and medium
CN110264431A (en) Video beautification method, device and electronic equipment
CN110807114B (en) Method, device, terminal and storage medium for picture display
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
CN111292245A (en) Image processing method and device
CN112241999A (en) Image generation method, device, equipment and computer readable medium
CN111125759A (en) Database login account shielding method and device and electronic equipment
CN110069570A (en) Data processing 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder