<s>
Statistical	B-Algorithm
region	I-Algorithm
merging	I-Algorithm
(	O
SRM	O
)	O
is	O
an	O
algorithm	O
used	O
for	O
image	B-Algorithm
segmentation	I-Algorithm
.	O
</s>
<s>
Some	O
useful	O
examples	O
are	O
creating	O
a	O
group	O
of	O
generations	O
within	O
a	O
population	O
,	O
or	O
in	O
image	B-Algorithm
processing	I-Algorithm
,	O
grouping	O
a	O
number	O
of	O
neighboring	O
pixels	B-Algorithm
based	O
on	O
their	O
shades	O
that	O
fall	O
within	O
a	O
particular	O
threshold	O
(	O
Qualification	O
Criteria	O
)	O
.	O
</s>
<s>
For	O
example	O
,	O
with	O
10	O
values	O
of	O
x	O
(	O
1.7	O
,	O
1.8	O
,	O
1.9	O
,	O
3.2	O
,	O
4.9	O
,	O
5.1	O
,	O
5.3	O
,	O
5.6	O
,	O
9	O
,	O
10	O
)	O
within	O
a	O
range	B-General_Concept
of	O
0	O
<	O
x	O
<	O
10	O
,	O
there	O
can	O
be	O
a	O
statistical	O
region-merging	O
algorithm	O
that	O
defines	O
a	O
merging	O
criteria	O
that	O
can	O
be	O
applied	O
to	O
merge	O
the	O
given	O
values	O
into	O
a	O
smaller	O
number	O
of	O
values	O
.	O
</s>
<s>
For	O
the	O
given	O
values	O
,	O
if	O
the	O
merging	O
criterion	O
is	O
merely	O
a	O
threshold	O
check	O
which	O
states	O
that	O
the	O
distance	O
of	O
the	O
selected	O
values	O
should	O
be	O
within	O
0.3	O
range	B-General_Concept
and	O
an	O
average	O
should	O
be	O
applied	O
,	O
then	O
the	O
result	O
of	O
the	O
above	O
values	O
of	O
x	O
will	O
be	O
:	O
</s>
<s>
A	O
major	O
use	O
of	O
SRM	O
is	O
in	O
image	B-Algorithm
processing	I-Algorithm
where	O
higher	O
number	O
color	B-Data_Structure
palettes	I-Data_Structure
in	O
an	O
image	O
are	O
converted	O
into	O
lower	O
number	O
palettes	B-Data_Structure
by	O
merging	O
the	O
similar	O
colors	O
 '	O
palettes	B-Data_Structure
together	O
.	O
</s>
<s>
There	O
are	O
several	O
implementations	O
available	O
of	O
SRM	O
for	O
color	O
image	B-Algorithm
segmentation	I-Algorithm
:	O
</s>
<s>
Java	B-Language
,	O
Matlab	B-Language
,	O
Python	B-Language
,	O
and	O
a	O
demo	O
applet	B-Language
.	O
</s>
