CN110335321A - Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree - Google Patents
Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree Download PDFInfo
- Publication number
- CN110335321A CN110335321A CN201910586303.9A CN201910586303A CN110335321A CN 110335321 A CN110335321 A CN 110335321A CN 201910586303 A CN201910586303 A CN 201910586303A CN 110335321 A CN110335321 A CN 110335321A
- Authority
- CN
- China
- Prior art keywords
- color lump
- color
- vector
- matching degree
- ship
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30156—Vehicle coating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
The invention discloses appraisal procedure, system, storage medium and the electronic equipment of a kind of color lump matching degree of ship's space, the appraisal procedure includes: the image for obtaining the ship's space, and described image includes the n color lumps;The syntople of each color lump and remaining color lump is traversed, to obtain the corresponding topological adjacency relation vector of each color lump;Obtain the corresponding color-values of each color lump;The individual matching degree vector of each color lump Yu remaining color lump is calculated separately according to the corresponding color-values of each color lump, the topological adjacency relation vector and the topological area ratio vector;Utilize the whole matching degree of individual matching degree vector and all color lumps in topological area ratio vector Ship ' cabin.Technical solution of the present invention can assess the matching degree of color lump in the cabin in complex environment, do not limited by color lump color category, effectively increase the design efficiency of ship's space, be suitble to promote the use of in Ship Design field.
Description
Technical field
The present invention relates to Ship Design Technology fields, and in particular to a kind of assessment side of the color lump matching degree of ship's space
Method, system, storage medium and electronic equipment.
Background technique
Ocean exploration ship operation sea area is far-reaching, the operation duration is very long, scientific research mission is heavy, space is relatively narrow, gives
No matter staff physiologically or is psychologically bringing more serious negative effect on ship.For this purpose, exploring cabin in ocean
Need to alleviate by various technological means the psychological pressure of staff, the mental health of support personnel, to maintain in the design of room
Relatively high operational performance is horizontal.
The important link that cabin Color Scheme is designed as ocean exploration ship, in personnel psychology pressure of releiving, adjustment personnel
It is of great significance in terms of psychological condition.Graceful cabin Color Scheme can effectively loosen the stress of operating personnel, swash
The active mood of hair personnel, and enforcement difficulty is small, extra cost is low is that a kind of practicable seaman psychology dredges mode.
In the prior art, the evaluation of Color Scheme scheme can only could be often completed by the subjective marking of expert or user
(evaluation of matching degree between multiple color lumps i.e. in cabin), evaluation result have very strong subjectivity and uncertainty;In addition, existing
Have in technology that there is also automatic Evaluation modes, but automatic Evaluation mode above-mentioned can only realize that two kinds of color lumps are matched and simply comment
Valence is unable to satisfy the whole evaluation of multiple color lumps in the cabin under complicated color environment.
Based on foregoing description, be badly in need of developing at present it is a kind of accurate and reliable and meet complicated color environment for ship's space
Color lump matching degree appraisal procedure.
Summary of the invention
The technical problem to be solved by the present invention is in the prior art cannot be accurately and efficiently to ship's space in order to overcome
The defect that the matching degree of color lump is assessed, the appraisal procedure, system, storage for providing a kind of color lump matching degree of ship's space are situated between
Matter and electronic equipment.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of appraisal procedure of the color lump matching degree of ship's space, the appraisal procedure include:
The image of the ship's space is obtained, described image includes the n color lumps, and n is the positive integer greater than 1;
The syntople of each color lump and remaining color lump is traversed, to obtain the corresponding topological adjacency of each color lump
Relation vector, the topological adjacency relation vector areIf i-th of color lump and j-th
Color lump is adjacent, then aij=1, if i-th of color lump and j-th of color lump are non-conterminous, aij=0;Wherein, aii=0,0 < i
≤ n, 0 < j≤n;
The ratio value between the area of each color lump and the area of remaining color lump is calculated separately, it is each described to obtain
The corresponding topological area ratio vector of color lump;
The corresponding color-values of each color lump are obtained, the color-values include hue value, brightness value and chroma value;
According to the corresponding color-values of each color lump, the topological adjacency relation vector and the topological area
Ratio vector calculates separately the individual matching degree vector of each color lump Yu remaining color lump;
Using the individual matching degree vector and the topological area ratio vector calculate the ship's space it is coloured
The whole matching degree of block.
Preferably, it is described obtain the corresponding color-values of each color lump before further include: preset inversion of phases table of the same colour, institute
State the one-to-one relationship that form and aspect translation table includes form and aspect mark and hue value;
The corresponding color-values of each color lump that obtain include:
Extract form and aspect mark, the brightness value and the chroma value of each color lump;
The corresponding hue value is converted by form and aspect mark using the form and aspect translation table.
Preferably, it is described according to the corresponding color-values of each color lump, the topological adjacency relation vector and
Described topology area ratio vector the step of calculating separately the individual matching degree vector of each color lump and remaining color lump includes:
The corresponding form and aspect order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,For the form and aspect order factor to
Amount,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
The corresponding lightness order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is
The brightness value of the i color lumps, the vjFor the brightness value of j-th of color lump;
The corresponding chroma order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the chroma order because of subvector,
Calculate the corresponding complexity factor vector of i-th of color lump, calculation formula are as follows:
Wherein,For the complexity factor vector,
According to the form and aspect order because subvector, the lightness order are because subvector, the chroma order are because of subvector, institute
State complexity factor vector and the topological adjacency relation vector calculate the corresponding individual matching degree of i-th of color lump to
Amount, calculation formula are as follows:
Wherein,For the corresponding individual of i-th of color lump
Matching degree vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
Preferably, calculating the whole matching degree using following formula:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
The present invention also provides a kind of assessment system of the color lump matching degree of ship's space, the assessment system includes:
Image collection module, for obtaining the image of the ship's space, described image includes the n color lumps, and n is big
In 1 positive integer;
Syntople determining module, it is each to obtain for traversing the syntople of each color lump and remaining color lump
The corresponding topological adjacency relation vector of the color lump, the topological adjacency relation vector are
If i-th of color lump is adjacent with j-th of color lump, aij=1, if i-th of color lump and j-th of color lump are non-conterminous, aij
=0;Wherein, aii=0,0 < i≤n, 0 < j≤n;
Area ratio vector determining module, for calculate separately each color lump area and remaining color lump area it
Between ratio value, to obtain the corresponding topological area ratio vector of each color lump;
Color-values obtain module, for obtaining the corresponding color-values of each color lump, the color-values include hue value,
Brightness value and chroma value;
Individual matching degree computing module, for according to the corresponding color-values of each color lump, the topological adjacency
Relation vector and the topological area ratio vector calculate separately the individual matching degree of each color lump and remaining color lump to
Amount;
Whole matching degree computing module, for utilizing the individual matching degree vector and the topological area ratio to meter
Calculate the whole matching degree of all color lumps of the ship's space.
Preferably, the assessment system further includes table setup module, for presetting inversion of phases table of the same colour, the form and aspect turn
Change table includes the one-to-one relationship of form and aspect mark and hue value;
It includes extracting sub-module and conversion submodule that the color-values, which obtain module:
The extracting sub-module is used to extract form and aspect mark, the brightness value and the coloured silk of each color lump
Angle value;
The extracting sub-module is also used to call the conversion submodule, and the conversion submodule is used to utilize the form and aspect
Form and aspect mark is converted the corresponding hue value by translation table.
Preferably, the individual matching degree computing module includes:
Form and aspect order factor computational submodule, for calculating the corresponding form and aspect order of i-th of color lump because of subvector, meter
Calculate formula are as follows:
Wherein,For the form and aspect order factor to
Amount,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
Lightness order factor computational submodule, for calculating the corresponding lightness order of i-th of color lump because of subvector, meter
Calculate formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is
The brightness value of the i color lumps, the vjFor the brightness value of j-th of color lump;
Chroma order factor computational submodule, for calculating the corresponding chroma order of i-th of color lump because of subvector, meter
Calculate formula are as follows:
Wherein,It is the chroma order because of subvector,
Complexity factor computational submodule, for calculating the corresponding complexity factor vector of i-th of color lump, calculation formula
Are as follows:
Wherein,For the complexity factor vector,
Matched sub-block is used for according to the form and aspect order because subvector, the lightness order are because of subvector, the chroma
Order is corresponding because subvector, the complexity factor vector and the topological adjacency relation vector calculate i-th of color lump
The individual matching degree vector, calculation formula are as follows:
Wherein,For the corresponding individual of i-th of color lump
Matching degree vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
Preferably, the whole matching degree computing module is used to calculate the whole matching degree using following formula:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
The present invention also provides a kind of electronic equipment, including memory, processor and storage on a memory and can handled
The computer program run on device, the processor realize the color lump matching degree of ship's space above-mentioned when executing computer program
Appraisal procedure the step of.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer journey
The step of appraisal procedure of color lump matching degree of ship's space above-mentioned is realized when sequence is executed by processor.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention
Example.
The positive effect of the present invention is that: the appraisal procedure of the color lump matching degree of ship's space provided by the invention,
System, storage medium and electronic equipment pass through the topological adjacency relation vector of multiple color lumps, topological area ratio in extracting cabin room
The color-values of example vector, color lump, it can be estimated that the whole matching degree of the indoor multiple color lumps in cabin.Thus, it is possible to complex environment
In cabin in the matching degree of color lump assessed, do not limited by color lump color category, enforcement difficulty is small, and executory cost is low,
Analytical cycle is short, effectively increases the design efficiency of ship's space, is suitble to promote the use of in Ship Design field.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the appraisal procedure of the color lump matching degree of ship's space of the embodiment of the present invention 1.
Fig. 2 is a kind of flow chart of the appraisal procedure of the color lump matching degree of ship's space of the embodiment of the present invention 2.
Fig. 3 is a kind of structural block diagram of the assessment system of the color lump matching degree of ship's space of the embodiment of the present invention 3.
Fig. 4 is a kind of structural block diagram of the assessment system of the color lump matching degree of ship's space of the embodiment of the present invention 4.
Fig. 5 is the knot of the electronic equipment of the appraisal procedure of the color lump matching degree of the realization ship's space of the embodiment of the present invention 5
Structure block diagram.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
Embodiment 1
The present embodiment provides a kind of appraisal procedures of the color lump matching degree of ship's space, as shown in Figure 1, the appraisal procedure
It may include steps of:
Step S1: obtaining the image of the ship's space, and described image includes the n color lumps, and n is just whole greater than 1
Number;
Step S2: the syntople of the traversal each color lump and remaining color lump, it is corresponding to obtain each color lump
Topological adjacency relation vector, the topological adjacency relation vector are If i-th of color
Block is adjacent with j-th of color lump, then aij=1, if i-th of color lump and j-th of color lump are non-conterminous, aij=0;Wherein,
aii=0,0 < i≤n, 0 < j≤n;
Step S3: the ratio value between the area of each color lump and the area of remaining color lump is calculated separately, to obtain
The corresponding topological area ratio vector of each color lump;
Step S4: the corresponding color-values of each color lump are obtained, the color-values include hue value, brightness value and coloured silk
Angle value;
Step S5: according to the corresponding color-values of each color lump, the topological adjacency relation vector and described
Topological area ratio vector calculates separately the individual matching degree vector of each color lump Yu remaining color lump;
Step S6: the ship's space is calculated using the individual matching degree vector and the topological area ratio vector
The whole matching degree of all color lumps.
In the present embodiment, the color lump is specifically located on the inner wall of ship's space, and the shape of the color lump can be circle
Shape or polygon, the area between each color lump can be identical or not identical.
When executing step S2, need to judge the syntople between each color lump and remaining color lump, by the syntople
Quantization means are carried out, and are the form of vector by the combinations of values after quantization, in topological adjacency relation vector, aijIt can indicate
The quantized value (1 or 0) of the syntople of i-th of color lump and j-th of color lump.It should be noted that due to certain color lump and its own
There is no whether abutting relation, thus a can be directly setii=0.
When specific execution step S3, the corresponding topological area ratio vector of i-th of color lump includes n numerical value, specifically,
Topological area ratio vector can be write asWherein,It is corresponding to represent i-th of color lump
Topological area ratio vector, bijRepresent the area (ratio of area (molecule in ratio) and i-th of color lump of j-th of color lump
In denominator) proportional numerical value.It is understood that biiRepresent ratio value of the area of i-th of color lump compared with its own, nothing
It needs to calculate, is directly disposed as 1.
In the present embodiment, the whole matching degree between calculated cabin color lump can represent the U.S. degree matching water of color lump
Flat, the value of whole matching degree is higher, and the color coordination represented between the color lump in entire cabin is more coordinated, and whole visual experience is got over
It is beautiful.
In specific application, it can use the color that method provided in this embodiment precalculates all kinds of common typical cabins
Block whole matching degree, and can will be calculated using calculated data as reference value when designing new cabin color layout
Color lump whole matching degree compared with reference value, new design scheme is modified according to comparing result, to realize
Ship's space design is continued to optimize.
The appraisal procedure of the color lump matching degree of ship's space provided in this embodiment passes through multiple color lumps in extracting cabin room
The color-values of topological adjacency relation vector, topological area ratio vector, color lump, it can be estimated that the entirety of the indoor multiple color lumps in cabin
Matching degree.Thus, it is possible to assess the matching degree of color lump in the cabin in complex environment, not by the limit of color lump color category
System, enforcement difficulty is small, and executory cost is low, and analytical cycle is short, effectively increases the design efficiency of ship's space, is suitble to set in ship
It promotes the use of in meter field.
Embodiment 2
The present embodiment provides a kind of appraisal procedure of the color lump matching degree of ship's space, the appraisal procedure is in embodiment
Further improvement on the basis of 1.
In the present embodiment, due to characterizing the brightness value of each color lump lightness state and characterizing the chroma value of chroma state
Be the form and aspect mark for existing with numeric form, and characterizing the form and aspect state of color lump existed in the form of character, thus calculated
Before, need to identify form and aspect the corresponding hue value for being converted into numeric form of conversion.
Based on this, inversion of phases table of the same colour, the color can also be preset before obtaining the corresponding color-values of each color lump
Inversion of phases table includes the one-to-one relationship of form and aspect mark and hue value.
Next, form and aspect mark, the brightness value and the chroma value of each color lump can be extracted, into
And the corresponding hue value is converted by form and aspect mark using the form and aspect translation table.
Preferably, the present embodiment can design form and aspect translation table using Meng Saier (Munsell) color system.It is filled in covering
In your (Munsell) color system, form and aspect are primarily used to distinguish the characteristic of different colours.The present embodiment can choose five kinds of masters
Form and aspect: Red, yellow, green, blue, purple, it is also an option that five kinds of Neutral colour: reddish yellow, it is yellowish green, it is turquoise, it is royal purple, purplish red.By face above-mentioned
Color presses annular arrangement, is divided into 100 equal branches (every form and aspect are sub-divided into 10, share 100 form and aspect).It defines form and aspect and identifies R
For red, YR is reddish yellow, and Y is yellow, GY be it is yellowish green, G is green, BG be it is turquoise, B is blue, and PB is royal purple, and P is purple, RP
It is purplish red etc..For convenience of calculation, form and aspect can be identified and be converted into numeric form, table 1 is that color lump mainly relates in ship's space
And form and aspect mark and corresponding hue value.In specific application, a cross can be gone out according to the parameter fitting in table 1
Coordinate be form and aspect mark, ordinate be hue value curve, in table 1 without reference to form and aspect identify (such as 6R), according to
The rule of the curve finds corresponding hue value using interpolation method in the prior art.
Table 1
Need to illustrate when, the brightness value and chroma value inherently numeric form of each color lump, because without again
It is converted.
Referring to FIG. 2, further, the step S5 may include steps of:
Step S51: the corresponding form and aspect order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,For the form and aspect order factor to
Amount,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
Step S52: the corresponding lightness order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is
The brightness value of the i color lumps, the vjFor the brightness value of j-th of color lump;
Step S53: the corresponding chroma order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the chroma order because of subvector,
Step S54: the corresponding complexity factor vector of i-th of color lump, calculation formula are calculated are as follows:
Wherein,For the complexity factor vector,
Step S55: according to the form and aspect order because subvector, the lightness order because subvector, the chroma order because
It is described corresponding that subvector, the complexity factor vector and the topological adjacency relation vector calculate i-th of color lump
Body matching degree vector, calculation formula are as follows:
Wherein,For the corresponding individual of i-th of color lump
Matching degree vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
In the present embodiment, it can use following formula and calculate the whole matching degree:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
The mode that the appraisal procedure of the color lump matching degree of ship's space provided in this embodiment can use quantization calculates color
The whole matching degree of block, effectively prevents uncertainty caused by subjective assessment.
Embodiment 3
The present embodiment provides a kind of assessment systems of the color lump matching degree of ship's space, referring to FIG. 3, the assessment system
1 may include:
Image collection module 10, for obtaining the image of the ship's space, described image includes the n color lumps, and n is
Positive integer greater than 1.
In the present embodiment, the color lump is specifically located on the inner wall of ship's space, and the shape of the color lump can be round
Or polygon, the area between each color lump can be identical or not identical.
Syntople determining module 11, it is every to obtain for traversing the syntople of each color lump and remaining color lump
The corresponding topological adjacency relation vector of a color lump, the topological adjacency relation vector areIf i-th of color lump is adjacent with j-th of color lump, aij=1, if i-th of color
Block and j-th of color lump are non-conterminous, then aij=0;Wherein, aii=0,0 < i≤n, 0 < j≤n.
The syntople determining module 11 at runtime, needs to judge the adjacent pass between each color lump and remaining color lump
System, by the syntople carry out quantization means, and by the combinations of values after quantization be vector form, topological adjacency relationship to
In amount, aijIt can indicate the quantized value (1 or 0) of the syntople of i-th of color lump and j-th of color lump.It should be noted that certain color
Block and its own there is no whether abutting relation, thus a can be directly setii=0.
Area ratio vector determining module 12, for calculating separately the area of each color lump and the area of remaining color lump
Between ratio value, to obtain the corresponding topological area ratio vector of each color lump;The corresponding topological area of i-th of color lump
Ratio vector includes n numerical value, and specifically, topological area ratio vector can be write asWherein,Represent the corresponding topological area ratio vector of i-th of color lump, bijIt represents
The proportional numerical value of the area (denominator in ratio) of the area (molecule in ratio) and i-th of color lump of j-th of color lump.It can manage
Solution, biiRatio value of the area of i-th of color lump compared with its own is represented, without calculating, is directly disposed as 1.
Color-values obtain module 13, and for obtaining the corresponding color-values of each color lump, the color-values include form and aspect
Value, brightness value and chroma value.
Individual matching degree computing module 14, for adjacent according to the corresponding color-values of each color lump, the topology
It connects relation vector and the topological area ratio vector calculates separately the individual matching degree of each color lump Yu remaining color lump
Vector.
Whole matching degree computing module 15, for utilizing the individual matching degree vector and the topological area ratio vector
Calculate the whole matching degree of all color lumps of the ship's space.
In the present embodiment, the whole matching degree between calculated cabin color lump can represent the U.S. degree matching water of color lump
Flat, the value of whole matching degree is higher, and the color coordination identified between the color lump in entire cabin is more coordinated, and whole visual experience is got over
It is beautiful.
Assessment system in embodiment 3 is corresponding with the appraisal procedure in embodiment 1.About institute's commentary in embodiment 3
Estimate the working principle of system, more contents of working method, the correlation about appraisal procedure being referred in embodiment 1 is retouched
It states, which is not described herein again.
The assessment system of the color lump matching degree of ship's space provided in this embodiment at runtime, by more in extracting cabin room
The color-values of the topological adjacency relation vector of a color lump, topological area ratio vector, color lump, it can be estimated that the indoor multiple colors in cabin
The whole matching degree of block.Thus, it is possible to assess the matching degree of color lump in the cabin in complex environment, not by color lump color
The limitation of type, enforcement difficulty is small, and executory cost is low, and analytical cycle is short, effectively increases the design efficiency of ship's space, is suitble to
It is promoted the use of in Ship Design field.
Embodiment 4
The present embodiment provides a kind of assessment system of the color lump matching degree of ship's space, the assessment system is in embodiment
Further improvement on the basis of 3.
Referring to FIG. 4, the assessment system 1 can also include table setup module 16, for presetting inversion of phases table of the same colour,
The form and aspect translation table includes the one-to-one relationship of form and aspect mark and hue value.
It may include extracting sub-module 131 and conversion submodule 132 that the color-values, which obtain module 13:
The extracting sub-module 131 is used to extract form and aspect mark, the brightness value and the institute of each color lump
State chroma value;
The extracting sub-module 131 is also used to call the conversion submodule 132, and the conversion submodule 132 is for benefit
The corresponding hue value is converted by form and aspect mark with the form and aspect translation table.
Further, the individual matching degree computing module 14 includes:
Form and aspect order factor computational submodule 141, for calculate the corresponding form and aspect order factor of i-th of color lump to
Amount, calculation formula are as follows:
Wherein,For the form and aspect order factor to
Amount,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
Lightness order factor computational submodule 142, for calculate the corresponding lightness order factor of i-th of color lump to
Amount, calculation formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is
The brightness value of the i color lumps, the vjFor the brightness value of j-th of color lump;
Chroma order factor computational submodule 143, for calculate the corresponding chroma order factor of i-th of color lump to
Amount, calculation formula are as follows:
Wherein,It is the chroma order because of subvector,
Complexity factor computational submodule 144 calculates public for calculating the corresponding complexity factor vector of i-th of color lump
Formula are as follows:
Wherein,For the complexity factor vector,
Matched sub-block 145, for according to the form and aspect order because subvector, the lightness order because subvector, described in
Chroma order calculates i-th of color lump pair because of subvector, the complexity factor vector and the topological adjacency relation vector
The individual matching degree vector answered, calculation formula are as follows:
Wherein,For the corresponding individual of i-th of color lump
Matching degree vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
Preferably, the whole matching degree computing module 15 can use following formula and calculate the whole matching degree:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
Assessment system in embodiment 4 is corresponding with the appraisal procedure in embodiment 2.About institute's commentary in embodiment 4
Estimate the working principle of system, more contents of working method, the correlation about appraisal procedure being referred in embodiment 2 is retouched
It states, which is not described herein again.
The assessment system of the color lump matching degree of ship's space provided in this embodiment at runtime, can use the side of quantization
Formula calculates the whole matching degree of color lump, effectively prevents uncertainty caused by subjective assessment.
Embodiment 5
The present invention also provides a kind of electronic equipment, as shown in figure 5, the electronic equipment may include memory, processor
And the computer program that can be run on a memory and on a processor is stored, the processor is realized when executing computer program
The step of appraisal procedure of the color lump matching degree of ship's space in embodiment 1 or 2.
It is understood that electronic equipment shown in fig. 5 is only an example, it should not be to the function of the embodiment of the present invention
Any restrictions are brought with use scope.
As shown in figure 5, electronic equipment 2 can be showed in the form of universal computing device, and such as: it can set for server
It is standby.The component of electronic equipment 2 can include but is not limited to: at least one above-mentioned processor 3, connects above-mentioned at least one processor 4
Connect the bus 5 of different system components (including memory 4 and processor 3).
The bus 5 may include data/address bus, address bus and control bus.
The memory 4 may include volatile memory, such as random access memory (RAM) 41 and/or high speed are delayed
Memory 42 is deposited, can further include read-only memory (ROM) 43.
The memory 4 can also include that the program means 45 with one group of (at least one) program module 44 are (or practical
Tool), such program module 44 includes but is not limited to: operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.
The computer program that the processor 3 is stored in the memory 4 by operation, is answered thereby executing various functions
With and data processing, such as the embodiment of the present invention 1 or 2 in ship's space color lump matching degree appraisal procedure the step of.
The electronic equipment 2 can also be communicated with one or more external equipments 6 (such as keyboard, sensing equipment etc.).This
Kind communication can be carried out by input/output (I/O) interface 7.Also, the electronic equipment 2 that model generates can also pass through network
Adapter 8 and one or more network (such as local network LAN, wide area network WAN and/or public network) communicate.
As shown in figure 5, network adapter 8 can be logical by the other modules for the electronic equipment 2 that bus 5 and model generate
Letter.It will be appreciated by those skilled in the art that although not shown in the drawings, can be used with the electronic equipment 2 that binding model generates other
Hardware and/or software module, including but not limited to: microcode, device driver, redundant processor, external disk drive array,
RAID (disk array) system, tape drive and data backup storage system etc..
It should be noted that although being referred to several units/modules or son list of electronic equipment in the above detailed description
Member/module, but it is this division be only exemplary it is not enforceable.In fact, embodiment according to the present invention, on
The feature and function of two or more units/modules of text description can embody in a units/modules.Conversely, above
The feature and function of one units/modules of description can be to be embodied by multiple units/modules with further division.
Embodiment 4
A kind of computer readable storage medium is present embodiments provided, computer program is stored thereon with, program is processed
The step of appraisal procedure of the color lump matching degree of the ship's space in embodiment 1 or 2 is realized when device executes.
Wherein, the more specific mode that computer readable storage medium can use can include but is not limited to: portable disc,
Hard disk, random access memory, read-only memory, erasable programmable read only memory, light storage device, magnetic memory device or
Above-mentioned any appropriate combination.
In possible embodiment, the present invention is also implemented as a kind of form of program product comprising program generation
Code, when program product is run on the terminal device, program code is realized in embodiment 1 or 2 for executing terminal device
The step of appraisal procedure of the color lump matching degree of ship's space.
Wherein it is possible to be write with any combination of one or more programming languages for executing program of the invention
Code, program code can be executed fully on a user device, partly execute on a user device, is independent as one
Software package executes, part executes on a remote device or executes on a remote device completely on a user device for part.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only
For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from
Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and
Modification each falls within protection scope of the present invention.
Claims (10)
1. a kind of appraisal procedure of the color lump matching degree of ship's space, which is characterized in that the appraisal procedure includes:
The image of the ship's space is obtained, described image includes the n color lumps, and n is the positive integer greater than 1;
The syntople of each color lump and remaining color lump is traversed, to obtain the corresponding topological adjacency relationship of each color lump
Vector, the topological adjacency relation vector areIf i-th of color lump and j-th of color lump
It is adjacent, then aij=1, if i-th of color lump and j-th of color lump are non-conterminous, aij=0;Wherein, aii=0,0 < i≤n,
0<j≤n;
The ratio value between the area of each color lump and the area of remaining color lump is calculated separately, to obtain each color lump
Corresponding topology area ratio vector;
The corresponding color-values of each color lump are obtained, the color-values include hue value, brightness value and chroma value;
According to the corresponding color-values of each color lump, the topological adjacency relation vector and the topological area ratio
Vector calculates separately the individual matching degree vector of each color lump Yu remaining color lump;
All color lumps of the ship's space are calculated using the individual matching degree vector and the topological area ratio vector
Whole matching degree.
2. the appraisal procedure of the color lump matching degree of ship's space as described in claim 1, which is characterized in that
It is described obtain the corresponding color-values of each color lump before further include: preset inversion of phases table of the same colour, the form and aspect conversion
Table includes the one-to-one relationship of form and aspect mark and hue value;
The corresponding color-values of each color lump that obtain include:
Extract form and aspect mark, the brightness value and the chroma value of each color lump;
The corresponding hue value is converted by form and aspect mark using the form and aspect translation table.
3. the appraisal procedure of the color lump matching degree of ship's space as claimed in claim 2, which is characterized in that the basis is each
The corresponding color-values of the color lump, the topological adjacency relation vector and the topological area ratio vector calculate separately
The step of individual matching degree vector of each color lump and remaining color lump includes:
The corresponding form and aspect order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the form and aspect order because of subvector,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
The corresponding lightness order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is i-th
The brightness value of the color lump, the vjFor the brightness value of j-th of color lump;
The corresponding chroma order of i-th of color lump is calculated because of subvector, calculation formula are as follows:
Wherein,It is the chroma order because of subvector,
Calculate the corresponding complexity factor vector of i-th of color lump, calculation formula are as follows:
Wherein,For the complexity factor vector,
According to the form and aspect order because subvector, the lightness order are because subvector, the chroma order are because of subvector, described multiple
It is miscellaneous because subvector and the topological adjacency relation vector calculate the corresponding individual matching degree vector of i-th of color lump,
Calculation formula are as follows:
Wherein,For the corresponding individual matching of i-th of color lump
Spend vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
4. the appraisal procedure of the color lump matching degree of ship's space as claimed in claim 3, which is characterized in that utilize following formula
Calculate the whole matching degree:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
5. a kind of assessment system of the color lump matching degree of ship's space, which is characterized in that the assessment system includes:
Image collection module, for obtaining the image of the ship's space, described image includes the n color lumps, and n is greater than 1
Positive integer;
Syntople determining module, it is each described to obtain for traversing the syntople of each color lump and remaining color lump
The corresponding topological adjacency relation vector of color lump, the topological adjacency relation vector are
If i-th of color lump is adjacent with j-th of color lump, aij=1, if i-th of color lump and j-th of color lump are non-conterminous, aij
=0;Wherein, aii=0,0 < i≤n, 0 < j≤n;
Area ratio vector determining module, for calculating separately between the area of each color lump and the area of remaining color lump
Ratio value, to obtain the corresponding topological area ratio vector of each color lump;
Color-values obtain module, and for obtaining the corresponding color-values of each color lump, the color-values include hue value, lightness
Value and chroma value;
Individual matching degree computing module, for according to the corresponding color-values of each color lump, the topological adjacency relationship
Vector and the topological area ratio vector calculate separately the individual matching degree vector of each color lump Yu remaining color lump;
Whole matching degree computing module, for calculating institute using the individual matching degree vector and the topological area ratio vector
State the whole matching degree of all color lumps of ship's space.
6. the assessment system of the color lump matching degree of ship's space as claimed in claim 5, which is characterized in that
The assessment system further includes table setup module, and for presetting inversion of phases table of the same colour, the form and aspect translation table includes color
The mutually one-to-one relationship of mark and hue value;
It includes extracting sub-module and conversion submodule that the color-values, which obtain module:
The extracting sub-module is used to extract form and aspect mark, the brightness value and the chroma of each color lump
Value;
The extracting sub-module is also used to call the conversion submodule, and the conversion submodule is used to convert using the form and aspect
Form and aspect mark is converted the corresponding hue value by table.
7. the assessment system of the color lump matching degree of ship's space as claimed in claim 6, which is characterized in that the individual matching
Spending computing module includes:
Form and aspect order factor computational submodule calculates public for calculating the corresponding form and aspect order of i-th of color lump because of subvector
Formula are as follows:
Wherein,It is the form and aspect order because of subvector,
The hiFor the hue value of i-th of color lump, the hjFor the hue value of j-th of color lump;
Lightness order factor computational submodule calculates public for calculating the corresponding lightness order of i-th of color lump because of subvector
Formula are as follows:
Wherein,It is the lightness order because of subvector,
The ciFor the chroma value of i-th of color lump, the cjFor the chroma value of j-th of color lump, the viIt is i-th
The brightness value of the color lump, the vjFor the brightness value of j-th of color lump;
Chroma order factor computational submodule calculates public for calculating the corresponding chroma order of i-th of color lump because of subvector
Formula are as follows:
Wherein,It is the chroma order because of subvector,
Complexity factor computational submodule, for calculating the corresponding complexity factor vector of i-th of color lump, calculation formula are as follows:
Wherein,For the complexity factor vector,
Matched sub-block is used for according to the form and aspect order because subvector, the lightness order are because of subvector, the chroma order
Because subvector, the complexity factor vector and the topological adjacency relation vector calculate i-th of color lump it is corresponding described in
Individual matching degree vector, calculation formula are as follows:
Wherein,For the corresponding individual matching degree of i-th of color lump
Vector, mii=0.5, mij=(ohij+ovij+ocij)/cij, mij=mji, mii=0.5.
8. the assessment system of the color lump matching degree of ship's space as claimed in claim 7, which is characterized in that the whole matching
Computing module is spent to be used to calculate the whole matching degree using following formula:
Wherein, z is the whole matching degree,For the corresponding topological area ratio vector of i-th of color lump.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes the described in any item ship cabins of claim 1-4 when executing computer program
The step of appraisal procedure of the color lump matching degree of room.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of the appraisal procedure of the color lump matching degree of the described in any item ship's spaces of claim 1-4 is realized when being executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586303.9A CN110335321B (en) | 2019-07-01 | 2019-07-01 | Color block matching degree evaluation method and system, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586303.9A CN110335321B (en) | 2019-07-01 | 2019-07-01 | Color block matching degree evaluation method and system, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110335321A true CN110335321A (en) | 2019-10-15 |
CN110335321B CN110335321B (en) | 2021-04-23 |
Family
ID=68143039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910586303.9A Active CN110335321B (en) | 2019-07-01 | 2019-07-01 | Color block matching degree evaluation method and system, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110335321B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115861055A (en) * | 2022-11-24 | 2023-03-28 | 湖北帅锐服装贸易有限公司 | Garment design layout splicing analysis method based on image recognition processing technology |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080239343A1 (en) * | 2007-03-29 | 2008-10-02 | Xerox Corporation | Automatic conversion of full color images to highlight color images |
CN101996407A (en) * | 2010-12-01 | 2011-03-30 | 北京航空航天大学 | Colour calibration method for multiple cameras |
CN102081802A (en) * | 2011-01-26 | 2011-06-01 | 北京中星微电子有限公司 | Method and device for detecting color card based on block matching |
CN103425466A (en) * | 2012-05-17 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Color matching processing method and color matching processing device |
CN105303587A (en) * | 2015-10-10 | 2016-02-03 | 安徽工业大学 | Automated and intelligent figure color-matching method |
EP3018461A1 (en) * | 2014-11-07 | 2016-05-11 | 3M Innovative Properties Company | A method of making a dental restoration |
CN107833266A (en) * | 2017-11-02 | 2018-03-23 | 青岛擎鹰信息科技有限责任公司 | A kind of hologram image acquisition methods based on color lump matching and motion correction |
CN108712639A (en) * | 2018-05-29 | 2018-10-26 | 凌云光技术集团有限责任公司 | Image color correction method, apparatus and system |
CN109901897A (en) * | 2019-01-11 | 2019-06-18 | 珠海天燕科技有限公司 | A kind of method and apparatus of the color of match views in the application |
-
2019
- 2019-07-01 CN CN201910586303.9A patent/CN110335321B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080239343A1 (en) * | 2007-03-29 | 2008-10-02 | Xerox Corporation | Automatic conversion of full color images to highlight color images |
CN101996407A (en) * | 2010-12-01 | 2011-03-30 | 北京航空航天大学 | Colour calibration method for multiple cameras |
CN102081802A (en) * | 2011-01-26 | 2011-06-01 | 北京中星微电子有限公司 | Method and device for detecting color card based on block matching |
CN103425466A (en) * | 2012-05-17 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Color matching processing method and color matching processing device |
EP3018461A1 (en) * | 2014-11-07 | 2016-05-11 | 3M Innovative Properties Company | A method of making a dental restoration |
CN105303587A (en) * | 2015-10-10 | 2016-02-03 | 安徽工业大学 | Automated and intelligent figure color-matching method |
CN107833266A (en) * | 2017-11-02 | 2018-03-23 | 青岛擎鹰信息科技有限责任公司 | A kind of hologram image acquisition methods based on color lump matching and motion correction |
CN108712639A (en) * | 2018-05-29 | 2018-10-26 | 凌云光技术集团有限责任公司 | Image color correction method, apparatus and system |
CN109901897A (en) * | 2019-01-11 | 2019-06-18 | 珠海天燕科技有限公司 | A kind of method and apparatus of the color of match views in the application |
Non-Patent Citations (3)
Title |
---|
L HUANG ET AL: "Image Inverse Halftone Method of Look-Up Table Based on Color Block Storage", 《JOURNAL OF HUNAN UNIVERSITY OF TECHNOLOGY》 * |
李靖等: "双目立体视觉和编码结构光相结合的三维重建方法", 《计算机应用》 * |
盛超等: "基于相对色度匹配方法的专色误差分析模型", 《海洋测绘》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115861055A (en) * | 2022-11-24 | 2023-03-28 | 湖北帅锐服装贸易有限公司 | Garment design layout splicing analysis method based on image recognition processing technology |
CN115861055B (en) * | 2022-11-24 | 2023-12-01 | 武汉所见科技有限公司 | Clothing design layout splicing analysis method based on image recognition processing technology |
Also Published As
Publication number | Publication date |
---|---|
CN110335321B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109829849B (en) | Training data generation method and device and terminal | |
CN108830912A (en) | A kind of interactive grayscale image color method of depth characteristic confrontation type study | |
CN111864896B (en) | Power load monitoring method and system | |
Kalist et al. | Possiblistic-fuzzy C-means clustering approach for the segmentation of satellite images in HSL color space | |
CN109559310A (en) | Power transmission and transformation inspection image quality evaluating method and system based on conspicuousness detection | |
CN107079077A (en) | It is configured like system | |
Chamorro-Martínez et al. | Fuzzy color spaces: A conceptual approach to color vision | |
Menegaz et al. | A discrete model for color naming | |
WO2005114641A2 (en) | Color characterization using nonlinear regression | |
CN102509097A (en) | Method and device for image segmentation | |
CN110335321A (en) | Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree | |
CN108875759A (en) | A kind of image processing method, device and server | |
JP2023537262A (en) | Apparatus and method for recommending color scheme based on spatial image analysis | |
CN103258334A (en) | Method of estimating scene light source colors of color image | |
Chamorro-Martínez et al. | Granular Modeling of Fuzzy Color Categories | |
CN109064431B (en) | Picture brightness adjusting method, equipment and storage medium thereof | |
CN110910480A (en) | Environment monitoring image rendering method based on color mode mapping relation | |
Gijsenij et al. | Color constancy by local averaging | |
CN109274950A (en) | Image processing method, device and electronic equipment | |
CN113534678A (en) | Method for migrating simulation of operation question-answering task to physical system | |
CN109086819A (en) | Caffemodel model compression method, system, equipment and medium | |
CN102355544B (en) | Color material selection assisting device and color material selection assisting method | |
Rasras et al. | Developing a new color model for image analysis and processing | |
Goudswaard et al. | An appraisal and classification of the transdisciplinarity of existing design tools | |
CN112990131B (en) | Method, device, equipment and medium for acquiring working gear of voltage change-over switch |
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 |