Information Technology Reference
In-Depth Information
-
B
max
,B
min
: Maximum and minimum brightness values among the agent's
neighborhood
-
rand
: a uniformly random number in the range [0
,
1]
Fig. 2.
Moore neighborhood and directions
2. Calculate output values from the inputs.
The output values are computed by the agent's GP-tree and the 16 inputs. In
this study, we introduce uncertainty in determining the direction to diversify
the generated patterns. The output values include new hue
a
H
, saturation
a
S
,brightness
a
B
, and direction
a
dir
, which are used to determine the agent's
next pixel to move to. Note that the hue, saturation, and brightness values
might be out of bounds [0
,
1] and are thus truncated by discarding the integer
part and negative sign. The direction is also regularized to
{
0
,...,
8
}
by the
remainder of dividing (100
a
dir
) by nine. Table 1 lists the functions used for
the GP-trees. An example GP-tree is given in Fig. 3.
·
Tabl e 1.
Function set used in the GP
Function
Action (on two inputs
x
and
y
)
add
x
+
y
sub
x − y
mult
xy
const
returns the associated constant value
max
max(
x,y
)
min
min(
x,y
)
sin
sin(
x
)
id
x
1
y<
0
.
0001
x/y
otherwise
div
x
+1
/
8
y>
0
.
5
x −
1
/
8 th rw e
incdec
x
+
y
2
mean
Search WWH ::
Custom Search