system is expected to deduce its implicit information
such as applicable situation, meaning and color type.
2. User knows color attribute and applicable
situation, while system recommends suitable color.
It can be regarded as reasoning from color attribute
to value.
3.1.1 Reasoning from Value to Attribute
During main color decision procedure, if user
chooses the color Main_part_color in RGB form
with color palette, as Main_part_color belongs to
class ColorDetail, it can turn to HValue
1
, SValue
1
,
VValue
1
, RValue
1
, GValue
1
, BValue
1
, and
RGBValue
1
in PA using method HSVToRGB () in
ColorDetail. Pid
1
, Lid
1
in ID can also be computed
during color configuration when Pid
1
=1 denotes
main color, and Lid
1
means the id of area to be
determined.
Once we set main color, some analysis has to be
done. From HValue
1
, SValue
1
, VValue
1
in
Main_part_color, ColorType
1
can be deduced to get
responding Cdescription
1
, Csymbol
1
, Cusage
1
and
Charmony
1
. All four attributes make references for
designers.
3.1.2 Reasoning from Attribute to Value
In this reasoning, user determines the condition set R
according to needs of color description, symbolic
meaning, applicable situation and matching degree.
The condition set R includes condition identifier set
RequestId and condition information set
UserRequest. We named color type set as ct
l
, color
value set as cd
l
. ColorType(x) denotes that x is color
type, Include(A, b) denotes that b belongs set A,
Have(a, b)denotes that a has attribute b.
The reasoning rule is as follows:
∃x ( ColorType(x) ∨ Have (x, R) )
→∀y( Include(x, y) ∨ Have(x, R) )
(9)
If one kind of color has specific attribute, then all
the color value belong to this kind should have this
attribute.
Then we can deduce color value from its
attribute as follows.
System will try to match table ct
1
in air-nailer
color configuration standard database with user
requirement R. Then the matched set of color type is
called CType.
Based on CType, system will search color table
cd
1
. Since color value CD inherits shared attribute
SA in color type, then we can get expected result as
set P.
3.2 First Assistant Color Configuration
First assistant color can be deduced just like main
color. According color harmony theory, we set color
configuration rule to deduce which color is suitable
as assistant color. We need to decide hue, lightness,
purity for the assistant one.
Harmony parameter set including six conditions
is named as HSpace. Similarly, there are ten
conditions are chosen for purity and lightness called
SSpace and VSpace separately.
HSpace= {α
1
, … , α
6
}(α<=180) (10)
SSpace = {β
1
, … , β
10
}
(β<=max (SValue
1
, 100-SValue
1
)
(11)
VSpace= {δ
1
, … , δ
10
}
(δ<= max (VValue
1
, 100-VValue
1
)
(12)
Assistant color value can be reasoned if user set
condition α
i
, β
m
, and δ
n
(i∈[1,6], m∈[1,10], n∈[1,10],
i, m, n∈N). The equation is listed as follows:
HValue
2
={HValue
1
+α
i
, HValue
1
-α
i
} (13)
SValue
2
={SValue
1
+β
m
, SValue
1
-β
m
} (14)
VValue
2
={ VValue
1
+δ
n
, VValue
1
-δ
n
} (15)
Sometimes, the value of Hvalue
2
will beyond range
of [0,360]. If it is greater than 360, it can be revised
as θ=θ-360. Otherwise, if it is less than 0, it can be
revised as θ=θ+360. If the value of SValue
2
or
VValue
2
is not valid ([0,100]), then set flag as “1” to
denote that it is invalid. Since HValue
2
must have
two items, SValue
2
and VValue
2
may have one or
two items, Cartesian product of all three sets of hue,
purity and lightness (HValue
2
* SValue
2
*VValue
2
)
can get 2 to 8 items. Thus we get set
First_assist_color_Union by method HSVToRGB ()
in method set MT of ColorDetail.
First_assist_color_Union = {S_Color
1
, …,
S_Color
i
}
2<= i <=8, i ∈n
(16)
The last step for assistant color configuration is
conflict detection. Since main color type called
ColorType
1
has been defined at previous stage, so as
conflict condition CC inherits from ColorType
1
.
Each item called S_Color
i
in Fisrt_assist_color set
can be converted from RGB space to HSV space at
first. Next, if parameter hue Hue
i
, purity Saturation
i
and lightness Value
i
in S_Color
i
locate in CC’s
CHSVArea and Hue
i
∈CHArea, Saturation
i
∈CSArea, Value
i
∈CVArea, then we conclude that
S_Color
i
conflicts with Main_part_color. The color
value will be marked at this point to warn the user.
ICEIS 2009 - International Conference on Enterprise Information Systems
358