Table 3: Compa ison o he adi ional image segmen a ion algo i hm by Canny [1986] and he algo i hm JSeg by Deng e al.
[ 1999] in images o ile composi ions o Scena io II.
1
lmages =l!c====C�a
�
n
�
n
�y===4:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡�
-!
: - -;----..;,
l -- _J
_____ j .
min: 20 max: 60
min: 90 max: 100
min: 70 max: 90
76
Designing a so wa e amewo k o sma en i omnen s
J. I. Sánchez-Venzalá, A. Fe nández-Mon es, J. A. O ega, R J. Cube os
Dcpa men o Compu c Sciencc, Uni e si y o Sc ille, Sc ille, Spain
j [email protected],a [email protected],jo [email protected], jcube [email protected]
Abs nc
The pu pose o his pape is o desc ibe he cksign
o a ,olh>,a c 1· amewo k o build sma en i on
men , ba,cd in he a chi ec u c p oposcd and hc
OSGi cchnology. Thc F a ncwo k di ides hc gen
e al p ocess in h ec subp ocesscs, and specilies a
111e hodology o hc implcmen a ion o each pa ,
as well as he way in which hese pnns mus in
c nc bc ween hcm. The main objcc i e o his
amewo k is o p o idc a pla onn o builcl sma
en i onmcn s in a modula way, whc c lexibili y
and in c opc abili y be wcen modules wc c gua an
leed whilc implcmen a1ion is acili a cd by ecluc
ing hc gap be wccn cach indi idual dc icc and hc
bcha iou o he sys em a a whole. always om hc
so wa e poin o icw: p o ocol. ela a and in e
aces hc c ogcncily ancl cle ice in e opc nbili y.
l In oduc ion
F o n he beginning o compu ing. compu e s ha c inc case
hci capaci y and capabili ics. whilc hci sizc ha e been e
duced. Thcsc changes ha c made possiblc new applica ions
o compu ing. like he ambien in elligence. whid1 aims o
imp o e hc cn i onmcn lo mnke li e casie o use s in a
nnspa en way.
Sma en i onmen s a e one o he ambien in elligence
p incipal ields. and a ep esen a ion o he ision o u u e
o socie y. Thus, ecen echnological ad ances ha e gi en
amhien i111elligence a new impulse, and sma en i onmen s
is now a ending -ield in he cu en compu e sphe e.
In a ecen pape we ha e s udied se e al sma home
p ojcc s, idcn i ying hc p incipal p occsscs ancl asks which
ha e o be ca ied ou in o dc o i nplcmcn an sma en i
on 1cn .
The s udy o he p ojec s. concluclcd ha so wa e !aye o
sma cn i onmcn s did no ccci e he app op ia e ele ance
by csea che s. Fo example. in c opc abili y was one o he
najo p oble111 in sma en i onmen . and so wa e is able o
p o idc solu ions o i .
Wc ha e p oposcd a gene al so wa e a chi cc u c aking
in consiclc n ion hcse asks ancl gcne alizing he111 o s na
en i onmen s.
The gene al a chi cc u c p oposecl o hcse asks is basecl
in he icw o s111a cn i onmen s as sys cms whe e i e 111ain
a cas [ 1] in c ac s be wecn hem (Figu e 1 ). These i c a cas,
can be di ided in wo g oups, h ee nain a cas which onn
he au o111a ion p ocess o he en i onmcn : Sense, Reason
ancl Ac . and wo suppo a cas: HCI ancl Secu i y. Each onc
o hcse a cas is cli idecl o his pa . in sc e al asks. in a
hie a chical s uc u c, as is p esen ed in scc ion 3.
Figu e 1: S111a En i on111en a eas.
Thc amewo k designed o111 he a chi ec u e philosophy,
gi es esponse o he nceds o each a ca, p o iding a co111-
111on se icc o icn ed middlcwa e (SOA) and de ining how
each ask ha c o be implemen ed by ollowing hc p incipies
o OSGi (Open Se ice Ga cway lni ia i c).
Thc dc ini ion o he sma en i onmen so wa e a nc-·
wo k p o icles a gene al a chi ec u e o sma cn i onmcn s.
a co111111on sc icc oolki and gi es hc so wa e laye he e
sponsibili y o dc ices and sc iccs in c ope abili y, educing
77
c
o
5
1
1
=
=
•
3
S
=
5
.
g
:
b
3
9
-
3
-
S
o
p
o
5
e
^
e
—
e
'
l
í
C
3
2
B
q
-
a
C
—
ñ
'
i
a
=
C
B
-
T
3
|
o
;
x
3
g
?
:
5
-
3
-
;
.
^
"
g
:
2
.
^
e
p
^
"
C
0
.
^
3
j
q
.
^
.
e
_
^
(
j
q
a
^
e
x
—
e
3
^
i
i
o
o
C
e
I
c
3
e
3
O
3
-
o
e
o
C
U
J
Í
e
s
'
$
^
7
T
^
-
^
^
e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